安装Fish Shellbrew install fish安装Oh My Fishcurl -L https://get.oh-my.fish | fish安装Fishercurl https://git.io/fisher –create-dirs -sLo /.config/fish/functions/fisher.fish配置 autojumpclone autojumpgit clone https://github.com/wting/autojump.git安装 autojump 至本地 /.autojump 目录:cd autojump./install.py在fish配置中打开文件/.config/fish/config。在编辑器中查找并添加以下行:begin set –local AUTOJUMP_PATH $HOME/.autojump/share/autojump/autojump.fish if test -e $AUTOJUMP_PATH source $AUTOJUMP_PATH endend退出fish,重新开始。使用cd命令访问常用目录。你现在可以使用j命令跳转到这些目录:exitj testDir跳转到当前目录的子目录:jc chid_dir查看autojump历史记录中的条目统计信息:j -s使用finder打开目录jo dir配置nvm使用fish之后,之前配置的nvm就不能用了,需要在/.config/fish/config当中添加nvm的配 置begin set –local AUTOJUMP_PATH $HOME/.autojump/share/autojump/autojump.fish if test -e $AUTOJUMP_PATH source $AUTOJUMP_PATH end function nvm bass source ~/.nvm/nvm.sh –no-use ‘;’ nvm $argv endend默认shell切换至fishecho /usr/local/bin/fish | sudo tee -a /etc/shellschsh -s /usr/local/bin/fishswitch to fish Fish shell 入门教程 使用版本:Autojump 22.5.1, Fish 3.0.0和Mac 10.14.2