安装oh-my-zsh
# 安装oh-my-zsh美化终端
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
1
它的配置文件路径在~/.zshrc
,可以在里面配置主题和插件。然后使用source ~/.zshrc
激活。
# 一些插件
# zsh-syntax-highlighting(命令高亮插件)
git clone https://github.com/zsh-users/zsh-syntax-highlighting ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# zsh-autosuggestions(自动补全插件)
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
1
2
3
4
5
6
2
3
4
5
6
# 参考
上次更新: 2025/07/13, 18:55:16