autojump 是一款使命令行下,各种目录之间的切换变得更灵活与方便。

安装

sudo apt install autojump

执行

autojump

如果出现以下的错误:

Please source the correct autojump file in your shell’s
startup file. For more information, please reinstall autojump
and read the post installation instructions.

执行以下:

echo ". /usr/share/autojump/autojump.bash" >> ~/.bashrc

退出shell再重新运行。

使用

j 文件夹

直接跳到记录中访问的文件夹

参考

Github project
Issues