###### itgoyo的博客

talk is cheap show me the code

## oh my zsh

• curl or wget should be installed

• git should be installed

#### Basic Installation

Oh My Zsh is installed by running one of the following commands in your terminal. You can install this via the command-line with either curl or wget.

• via curl

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

#### Plugins

Once you spot a plugin (or several) that you’d like to use with Oh My Zsh, you’ll need to enable them in the .zshrc file. You’ll find the zshrc file in your \$HOME directory. Open it with your favorite text editor and you’ll see a spot to list all the plugins you want to load.

For example, this line might begin to look like this:

plugins=(git bundler osx rake ruby)

#### Themes

Robby’s theme is the default one. It’s not the fanciest one. It’s not the simplest one. It’s just the right one (for him).

Once you find a theme that you want to use, you will need to edit the ~/.zshrc file. You’ll see an environment variable (all caps) in there that looks like:

ZSH_THEME="robbyrussell"

To use a different theme, simply change the value to match the name of your desired theme. For example:

ZSH_THEME="agnoster" # (this is one of the fancy ones)
# you might need to install a special Powerline font on your console's host for this to work
# see https://github.com/robbyrussell/oh-my-zsh/wiki/Themes#agnoster


### 出现乱码解决方式

执行以下命令来安装缺失的字体：
wget https://raw.githubusercontent.com/powerline/powerline/develop/font/10-powerline-symbols.conf
wget https://raw.githubusercontent.com/powerline/powerline/develop/font/PowerlineSymbols.otf
sudo mkdir /usr/share/fonts/OTF
sudo cp 10-powerline-symbols.conf /usr/share/fonts/OTF/
sudo mv 10-powerline-symbols.conf /etc/fonts/conf.d/
sudo mv PowerlineSymbols.otf /usr/share/fonts/OTF/

Open up a new terminal window and your prompt should look something like this:

In case you did not find a suitable theme for your needs, please have a look at the wiki for more of them.

If you’re feeling feisty, you can let the computer select one randomly for you each time you open a new terminal window.

ZSH_THEME="random" # (...please let it be pie... please be some pie..)

#### ubuntu16.04安装oh-my-zsh

2016-07-03 14:27:21

#### oh my zsh的安装与配置

2017-01-09 20:26:57

#### iterm2+oh my zsh

2017-04-15 16:03:22

#### 利用Oh-My-Zsh打造你的超级终端

2017-06-04 12:29:42

#### zsh和oh-my-zsh的一些好用的主题及插件

2017-02-16 21:25:37

#### oh my zsh mac 安装方法

2015-05-26 01:45:01

#### oh-my-zsh使用记录

2017-02-22 12:39:09

#### 安装oh-my-zsh及一些插件

2017-09-15 09:51:35

#### iTerm2 + Oh My Zsh 终端DIY过程

2017-02-02 23:59:52

#### Mac配置终端环境 iTerm2 + Zsh + Oh My Zsh + tmux

2016-06-19 07:15:09

oh my zsh详细安装教程