iterm2安装及一些配置

一.git安装

自带终端输入 git,然后安装
查看版本  git --version

二. 安装homebrew

打开终端输入:/bin/zsh -c "($curl  -fsSL https://gitee.com/huwei1024/HomebrewCN/raw/master/Homebrew.sh)"
配置:1.进入根系统 cd ~
            2.创建.zshrc   touch .zshrc
            3.编辑文件  sudo vim .zshrc
           4.修改环境配置   export PATH=/opt/homebrew/bin:PATH
                                          export PATH=/opt/homebrew/sbin:PATH
           5.刷新文件  source ~/.zshrc
           6.安装 iterm2   brew install iterm2

三. iterm2的配置

1.git clone https://gitee.com/mirrors/oh-my-zsh ~/.oh-my-zsh
2.将  cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
3.将zshrc文件里的ZSH_THEME = "" 改为 ZSH_THEME = "agnoster"
git clone https://github.com/powerline/fonts.git
进入fonts文件夹  执行install.sh
然后再iterm2的profiles的Text里选择需要的字体
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone git://github.com/zsh-users/zsh-syntax-highlighting $ZSH_CUSTOM/plugins/zsh-syntax-highlighting

将.zshrc文件里的 plugins = 改为 plugins =(
git 
zsh-autosuggestions
zsh-syntax-highlighting
)

可以再调节下profiles里的color的bright 
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容