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