安装〖fish〗和〖starship〗步骤
安装 fish 步骤
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
#添加 Fish 官方 PPA apt-get install -y software-properties-common apt-add-repository ppa:fish-shell/release-3 #安装最新版 echo 'deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_12/ /' | tee /etc/apt/sources.list.d/shells:fish:release:3.list curl -fsSL https://download.opensuse.org/repositories/shells:fish:release:3/Debian_12/Release.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/shells_fish_release_3.gpg > /dev/null apt update apt install -y fish #设置 Fish Shell 为默认 shell chsh -s /usr/bin/fish #禁用欢迎词,打开配置文件 nano ~/.config/fish/config.fish #添加以下行 set -g fish_greeting #重新加载 fish 配置 source ~/.config/fish/config.fish |
安装 starship 步骤
1 2 3 4 5 6 7 8 9 10 |
#安装 sh -c "$(curl -fsSL https://starship.rs/install.sh)" #添加默认 nano ~/.config/fish/config.fish #添加以下行 starship init fish | source #重新加载 fish 配置 source ~/.config/fish/config.fish #安装 starship 主题 starship preset bracketed-segments -o ~/.config/starship.toml |
THE END