终端配置效果如下:
    image.png

    1. 进入的要安装的目录

      1. cd ~/tools/.oh-my-zsh/
    2. 访问如下url,复制内容

      1. https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh
    3. 创建文件并运行

      1. touch install.sh && chmod +x install.sh && ./install

    在有代理的情况下,上面3个步骤也可以一行解决

    1. sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
    1. 安装自动补全插件

      1. git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
    2. 安装高亮插件

      1. git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
    3. 修改配置 ```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

    1. 7. **iterm新建终端模版**
    2. ![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)
    3. 8. 设置窗口透明度
    4. ![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)
    5. 7. vim美化
    6. ```php
    7. vim ~/.vimrc
    8. source ~/.vimrc
    1. " 设定默认解码
    2. set fenc=utf-8
    3. set fencs=utf-8,usc-bom,euc-jp,gb18030,gbk,gb2312,cp936
    4. " 不要使用vi的键盘模式,而是vim自己的
    5. set nocompatible
    6. " history文件中需要记录的行数
    7. set history=100
    8. " 语法高亮
    9. syntax on
    10. " 高亮字符,让其不受100列限制
    11. :highlight OverLength ctermbg=red ctermfg=white guibg=red guifg=white
    12. :match OverLength '\%101v.*'
    13. " 带有如下符号的单词不要被换行分割
    14. set iskeyword+=_,$,@,%,#,-
    15. " 状态行颜色
    16. highlight StatusLine guifg=SlateBlue guibg=Yellow
    17. highlight StatusLineNC guifg=Gray guibg=White
    18. " 增强模式中的命令行自动完成操作
    19. set wildmenu
    20. " 在状态行上显示光标所在位置的行号和列号
    21. set ruler
    22. set rulerformat=%20(%2*%<%f%=\ %m%r\ %3l\ %c\ %p%%%)
    23. " 允许backspace和光标键跨越行边界
    24. set whichwrap+=<,>,h,l " 允许backspace和光标键跨越行边界
    25. set whichwrap+=<,>,h,l
    26. " 高亮显示匹配的括号
    27. set showmatch
    28. " 自动格式化
    29. set formatoptions=tcrqn
    30. " 继承前一行的缩进方式,特别适用于多行注释
    31. set autoindent
    32. " 为C程序提供自动缩进
    33. set smartindent
    34. " 使用C样式的缩进
    35. set cindent
    36. " 制表符为4
    37. set tabstop=4
    38. " 统一缩进为4
    39. set softtabstop=4
    40. set shiftwidth=4
    41. "行号
    42. set nu