fish安装autojump

2018年8月30日 0 作者 筱枫

最新想用用autojump,但是网络上的教程大多都已过时,且官方也没有给出个明确的安装方式,遂自己记录下安装的过程
系统 fedora28

安装其实很简单

yum install fish autojum-fish -y

主要问题就是难在如何配置的上面,如果直接在fish当中使用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.
大意就是autojump的没有在shell的启动文件中

这里可以使用搜素功能找到autojump.fish
接着,再去fish的配置文件中加入它

注意,是去fish的配置文件中,而不是普通的.bashrc!

fish的配置文件一般在/etc/fish/config.fish
实在找不到可以用locate进行搜索,这里有两种方式,一种是直接修改config.fish文件,另外一种是将autojump.fish放入/etc/fish/conf.d中,接着退出fish,重新进一下即可

虽然安装很简单,但是没有明确的教程下,还是稍微花了点功夫才安装好,下面,就是享受autojump带来的快感~