Using Fish Shell
Installation
sudo apt-add-repository ppa:fish-shell/release-3
sudo apt update
sudo apt install fish
Fisher(Fish Shell plugin manager)
https://github.com/jorgebucaran/fisher
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher
Fisher Command
fisher install < plugin_name > # install plugin 安装插件
fisher list # check plugin list 查看插件列表
fisher update # update all plugins 更新所有插件
Config
# config file path ~/.config/fish/config.fish
if status is-interactive
# 安装starship
starship init fish | source
# 安装nvm in fish
function nvm
bass source ~/.nvm/nvm.sh --no-use ';' nvm $argv
end
set -x NVM_DIR ~/.nvm
nvm use default --silent
end