技术宅改变世界 技术宅改变世界

配置iterm2 for macos

in Dev read (760) 文章转载请注明来源!

安装iterm

brew cask install iterm2

也可以自己官网下载安装包进行安装

安装配色方案

下载配色:https://github.com/altercation/solarized

安装配色,进入iterm2-colors-solarized目录,双击Solarized Dark.itermcolors、Solarized Light.itermcolors安装配色。

使用配色preferences->profiles->colors->color presets选择Solarized Dark或者Solarized Light。

升级zsh

升级brew install zsh

配置vim /etc/shells,加入一行/usr/local/bin/zsh

安装powerline字体

git clone https://github.com/powerline/powerline
cd powerline
`./install.sh`

打开iterm,preferences->profiles->text->change font,搜索powerline,选择其中一个,那个看着舒服选那个。

安装ohmyzsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

安装agnoster主题

git clone https://github.com/fcamblor/oh-my-zsh-agnoster-fcamblor
cd oh-my-zsh-agnoster-fcamblor
./install

编辑~/.zshrc文件找到ZSH_THEME设置为ZSH_THEME="agnoster"。

安装zsh-syntax-highlighting高亮插件

下载插件

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting`

启用插件

echo 'source /Users/ghostcir/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting' >> ~/.zshrc

刷新配置

source ~/.zshrc

删除用户名+主机名显示

echo 'DEFAULT_USER=`whoami`' >> ~/.zshrc
source ~/.zshrc
itermzshzsh-syntax-highlightingohmyzshpowerlineagnoster
发表新评论
博客已萌萌哒运行
© 2020 • Powered by Typecho • Theme for yotu
PREVIOUS NEXT
雷姆
拉姆