终端配置效果如下:
进入的要安装的目录
cd ~/tools/.oh-my-zsh/
访问如下url,复制内容
https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh
创建文件并运行
touch install.sh && chmod +x install.sh && ./install
在有代理的情况下,上面3个步骤也可以一行解决
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
安装自动补全插件
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
安装高亮插件
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
修改配置 ```bash vim ~/.zshrc ZSH_THEME=”random” plugins=(git zsh-syntax-highlighting zsh-autosuggestions) source ~/.zshrc
chmod 755 /usr/local/share/zsh chmod 755 /usr/local/share/zsh/site-functions
7. **iterm新建终端模版**
![image.png](https://cdn.nlark.com/yuque/0/2022/png/25952523/1642652064825-5c01fae3-d33c-47d9-b5ed-ee69d1e0942e.png#clientId=ub909a8c5-c989-4&from=paste&height=630&id=u19b74dd8&originHeight=1260&originWidth=1856&originalType=binary&ratio=1&rotation=0&showTitle=false&size=488531&status=done&style=none&taskId=u986f8860-268c-490e-9d43-3aaca5c40e9&title=&width=928)
8. 设置窗口透明度
![image.png](https://cdn.nlark.com/yuque/0/2022/png/25952523/1642652094151-18b64587-2fbd-489f-9331-51f4f8a62b87.png#clientId=ub909a8c5-c989-4&from=paste&height=597&id=u59330201&originHeight=1194&originWidth=1880&originalType=binary&ratio=1&rotation=0&showTitle=false&size=504365&status=done&style=none&taskId=u51140136-dbbf-4cc3-92fb-041e5b473ee&title=&width=940)
7. vim美化
```php
vim ~/.vimrc
source ~/.vimrc
" 设定默认解码
set fenc=utf-8
set fencs=utf-8,usc-bom,euc-jp,gb18030,gbk,gb2312,cp936
" 不要使用vi的键盘模式,而是vim自己的
set nocompatible
" history文件中需要记录的行数
set history=100
" 语法高亮
syntax on
" 高亮字符,让其不受100列限制
:highlight OverLength ctermbg=red ctermfg=white guibg=red guifg=white
:match OverLength '\%101v.*'
" 带有如下符号的单词不要被换行分割
set iskeyword+=_,$,@,%,#,-
" 状态行颜色
highlight StatusLine guifg=SlateBlue guibg=Yellow
highlight StatusLineNC guifg=Gray guibg=White
" 增强模式中的命令行自动完成操作
set wildmenu
" 在状态行上显示光标所在位置的行号和列号
set ruler
set rulerformat=%20(%2*%<%f%=\ %m%r\ %3l\ %c\ %p%%%)
" 允许backspace和光标键跨越行边界
set whichwrap+=<,>,h,l " 允许backspace和光标键跨越行边界
set whichwrap+=<,>,h,l
" 高亮显示匹配的括号
set showmatch
" 自动格式化
set formatoptions=tcrqn
" 继承前一行的缩进方式,特别适用于多行注释
set autoindent
" 为C程序提供自动缩进
set smartindent
" 使用C样式的缩进
set cindent
" 制表符为4
set tabstop=4
" 统一缩进为4
set softtabstop=4
set shiftwidth=4
"行号
set nu