zsh, oh-my-zsh安装与配置

6 阅读1分钟
安装zsh
sudo apt-get install zsh

安装oh-my-zsh
sh -c "$(wget -O- https://install.ohmyz.sh/)"

安装powerlevel 10k主题 
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

修改~/.zshrc
ZSH_THEME="powerlevel10k/powerlevel10k"

安装插件
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions
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

修改~/.zshrc
plugins=(git extract z sudo zsh-autosuggestions zsh-syntax-highlighting)


oh-my-zsh主题推荐: Themes · ohmyzsh/ohmyzsh Wiki


非root权限安装zsh: www.cnblogs.com/XiiX/p/1461…