zsh && oh-my-zsh
安装 zsh
sudo apt install zsh git wget curl
查看当前使用的 bash
echo $SHELL
切换到 zsh
chsh -s $(which zsh)
查看是否切换成功
grep zsh /etc/passwd
安装 on-my-zsh
国外镜像
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
国内镜像
sh -c "$(curl -fsSL https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh)"
主题
sudo wget -O $ZSH_CUSTOM/themes/haoomz.zsh-theme https://cdn.haoyep.com/gh/leegical/Blog_img/zsh/haoomz.zsh-theme
修改 ~/.zshrc 文件
ZSH_THEME="haoomz"
插件
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
)