zsh有自动补全功能,搭配Starship速度更快。
一.安装Starship和zsh curl -sS https://starship.rs/install.sh | sh 系统太低无法识别,下载解压移动到/usr/local/bin/ 另外安装Nerd Font字体,显示emoji图标。 apt install zsh
echo 'eval "$(starship init zsh)"' >> ~/.zshrc ; source ~/.zshrc
二.安装 Zsh 插件,速度慢使用github加速
mkdir -p ~/.zsh
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zsh/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-completions.git ~/.zsh/zsh-completions
三.配置 .zshrc