iterm2总结


iTerm2是Mac终端的替代品,也是iTerm的继承者。 它适用于使用macOS 10.10或更高版本的Mac。

官网:https://www.iterm2.com/index.html


iterm2


## 安装

下载

下载地址:https://www.iterm2.com/downloads.html

安装

解压文件把iterm2 copy到应用程序


## 安装 Powerline 字体 zsh有些主题需要Powerline 字体,Github:https://github.com/powerline/fonts ** 1、安装 ** ```bash git clone https://github.com/powerline/fonts.git --depth=1 cd fonts ./install.sh cd .. rm -rf fonts ``` ** 2、配置 ** ![配置](1543202719106.jpg)
## Zsh

https://github.com/robbyrussell/oh-my-zsh/wiki/Installing-ZSH

Zsh

# 先查看是否安装
zsh --version
# 安装
brew install zsh zsh-completions

### Oh My Zsh ** 1、安装 ** ```bash # 安装有两种方式,随意用那种 # curl 安装方式 sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

wget 安装方式

sh -c “$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)”


** 2、配置 **

sudo vim ~/.zshrc

`修改生效:source ~/.zshrc`

** 3、主题 **
https://github.com/robbyrussell/oh-my-zsh/wiki/themes

Oh My Zsh 默认自带了一些默认主题,存放在 `~/.oh-my-zsh/themes` 目录中。我们可以查看这些主题

```bash
cd ~/.oh-my-zsh/themes
ll
# 打开配置
sudo vim ~/.zshrc
# 配置主题
ZSH_THEME=agnoster

修改生效:source ~/.zshrc

** 4、卸载 **

uninstall_oh_my_zsh

## 配色 ![config](1543213263217.jpg)

参考 iterm2-官网 oh-my-zsh


文章作者: Gumihoy
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 Gumihoy !
评论
  目录