效果

效果

安装zsh(mac自带)

sudo yum install -y zsh

sudo apt-get install -y zsh

安装Oh My Zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

换主题

vi ~/.zshrc

修改 ZSH_THEME 为 ys (开头的效果,很简洁)

ZSH_THEME=ys

主题文件位置:~/.oh-my-zsh/themes

安装插件

进入插件路径

cd ~/.oh-my-zsh/plugins

下载自动补齐、高亮、建议插件

wget http://mimosa-pudica.net/src/incr-0.2.zsh
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
git clone https://github.com/zsh-users/zsh-autosuggestions
source incr*.zsh

修改配置文件

$ vi ~/.zshrc
plugins=(git
zsh-syntax-highlighting
zsh-autosuggestions)
source ~/.oh-my-zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

完工


版权属于:芒果爱吃胡萝卜

本文链接:http://mangolovecarrot.net/2021/05/17/301

转载时须注明出处及本声明

Last modification:May 21st, 2021 at 07:18 pm