8 stdenv.mkDerivation rec {
12 src = fetchFromGitHub {
15 rev = "release-v${version}";
16 sha256 = "1rgpsh70manr2dydna9da4x7p8ahii7dgdgwir5fka340n1wrcws";
19 buildInputs = [ python3 ];
20 nativeBuildInputs = [ python3 ];
25 python ./install.py -d "$out" -p "" -z "$out/share/zsh/site-functions/"
27 chmod +x "$out/etc/profile.d/autojump.sh"
28 install -Dt "$out/share/bash-completion/completions/" -m444 "$out/share/autojump/autojump.bash"
29 install -Dt "$out/share/fish/vendor_conf.d/" -m444 "$out/share/autojump/autojump.fish"
30 install -Dt "$out/share/zsh/site-functions/" -m444 "$out/share/autojump/autojump.zsh"
34 description = "`cd' command that learns";
35 mainProgram = "autojump";
37 One of the most used shell commands is “cd”. A quick survey
38 among my friends revealed that between 10 and 20% of all
39 commands they type are actually cd commands! Unfortunately,
40 jumping from one part of your system to another with cd
41 requires to enter almost the full path, which isn’t very
42 practical and requires a lot of keystrokes.
44 Autojump is a faster way to navigate your filesystem. It
45 works by maintaining a database of the directories you use the
46 most from the command line. The jstat command shows you the
47 current contents of the database. You need to work a little
48 bit before the database becomes usable. Once your database
49 is reasonably complete, you can “jump” to a directory by
50 typing "j dirspec", where dirspec is a few characters of the
51 directory you want to jump to. It will jump to the most used
52 directory whose name matches the pattern given in dirspec.
54 Autojump supports tab-completion.
56 homepage = "https://github.com/wting/autojump";
57 license = licenses.gpl3;
58 platforms = platforms.all;
59 maintainers = with maintainers; [