shell 配置

安装 iterm2
安装 ohmyzsh
主题
- 打开 zshrc,推荐 VSCode 可格式化
open ~/.zshrc
- 添加主题
ZSH_THEME="robbyrussell"
- 保存
source ~/.zshrc
插件
高亮插件
下载
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
打开 zshrc,推荐 VSCode 可格式化
open ~/.zshrc
添加插件描述
1
2
3plugins=(
#高亮
zsh-syntax-highlighting)保存
source ~/.zshrc
输入建议插件
下载
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
打开 zshrc,推荐 VSCode 可格式化
open ~/.zshrc
添加插件描述
1
2
3
4
5plugins=(
#高亮
zsh-syntax-highlighting
#输入建议
zsh-autosuggeestions)保存
source ~/.zshrc
.zshrc 样例
1 |
|
- Post title:shell 配置
- Post author:xxxixxxx
- Create time:2021-08-11 23:50:00
- Post link:https://xxxixxx.github.io/2021/08/11/700-shell/
- Copyright Notice:All articles in this blog are licensed under BY-NC-SA unless stating additionally.
Comments