命令行界面美化
安装zsh
sudo apt install zsh
安装 oh my zsh 美化主题
sh -c "$(wget (https://cdn.jsdelivr.net/gh/ohmyzsh/ohmyzsh@master/tools/install.sh) -O -)"
更换自己喜爱的主题
~/.zshrc
# 找到 ZSH_THEME# robbyrussell 是默认的主题ZSH_THEME="robbyrussell"
# ZSH_THEME="样式名称
主题样式参见
https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
安装命令行高亮 和 历史记录
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/plugins/zsh-autosuggestions
修改zsh配置
vim ~/.zshrc
在配置中添加插件名字:
plugins=( [plugins...]
zsh-autosuggestions zsh-syntax-highlighting)
重新加载zsh配置
source ~/.zshrc
确实好用