Fish Shell 使用笔记
生活随笔
收集整理的這篇文章主要介紹了
Fish Shell 使用笔记
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
安裝Fish Shell
brew install fish安裝Oh My Fish
curl -L https://get.oh-my.fish | fish安裝Fisher
curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish配置 autojump
-
clone autojump
git clone https://github.com/wting/autojump.git -
安裝 autojump 至本地 ~/.autojump 目錄:
cd autojump ./install.py- 在fish配置中打開文件~/.config/fish/config。在編輯器中查找并添加以下行:
-
退出fish,重新開始。使用cd命令訪問常用目錄。你現在可以使用j命令跳轉到這些目錄:
exit j testDir -
跳轉到當前目錄的子目錄:
jc chid_dir- 查看autojump歷史記錄中的條目統計信息:
-
使用finder打開目錄
jo dir
配置nvm
-
使用fish之后,之前配置的nvm就不能用了,需要在~/.config/fish/config當中添加nvm的配 置
beginset --local AUTOJUMP_PATH $HOME/.autojump/share/autojump/autojump.fishif test -e $AUTOJUMP_PATHsource $AUTOJUMP_PATHendfunction nvmbass source ~/.nvm/nvm.sh --no-use ';' nvm $argvend end
默認shell切換至fish
echo /usr/local/bin/fish | sudo tee -a /etc/shells chsh -s /usr/local/bin/fishFish shell 入門教程
使用版本:Autojump 22.5.1, Fish 3.0.0和Mac 10.14.2
總結
以上是生活随笔為你收集整理的Fish Shell 使用笔记的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux每日命令(5):mkdir命令
- 下一篇: (原創) 今天拿到學生證了 (日記)