📅 2014-Feb-27 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ autojump, fish ⬩ 📚 Archive
Autojump is a tool that can be used to jump around in the shell to frequently used directories by typing just a part of their name. It is typically aliased to j
. Autojump is available as a package in the Ubuntu repositories, but that is an old version that does not support the fish shell. Installing the latest version for fish is pretty easy:
$ git clone https://github.com/wting/autojump.git
~/.autojump
directory:$ cd autojump
$ ./install.py
autojump.fish
file in your fish configuration, by opening the file ~/.config/fish/config.fish
in an editor and adding these lines:begin
set --local AUTOJUMP_PATH $HOME/.autojump/share/autojump/autojump.fish
if test -e $AUTOJUMP_PATH
source $AUTOJUMP_PATH
end
end
cd
command. You can now jump to these directories by using the j
command:$ cd /some/superlongdirectoryname
$ cd
$ j tory
$ pwd
/some/superlongdirectoryname
$ jc some_blah
$ j -s
~/.local/share/autojump/autojump.txt
.Tried with: Autojump 22.2.4, Fish 2.2b1 and Ubuntu 14.04