ZSH配置
前置
1 | sudo apt install zsh git |
安装oh-my-zsh
安装oh-my-zsh
1 | sh -c "$(wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)" |
安装插件
高亮插件
安装zsh-syntax-highlighting
1 | git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting |
配置
1 | vim ~/.zshrc |
修改如下
也就是加一个 zsh-syntax-highlighting
轻点esc,输入:wq退出(包含“ : ”这个符号)
重启zsh
1 | source ~/.zshrc |