Forked from https://gist.github.com/Ins1ne/3751033
A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals
require Node.js v6 or above
git clone https://github.com/ikatyang/zsh-theme.git
cp ./zsh-theme/fonts/WenQuanYi-Mono-for-Powerline.ttf /Library/Fonts/
cp ./zsh-theme/ikatyang.zsh-theme ~/.oh-my-zsh/themes/
node ./zsh-theme/scripts/set-theme.js ikatyang
rm -rf ./zsh-theme
- Install Powerline font if there is not.
- Download ikatyang.zsh-theme to
~/.oh-my-zsh/themes
- Edit
~/.zshrc
, setZSH_THEME
asikatyang
ZSH_THEME="ikatyang"
To test if your terminal and font support it, check that all the necessary characters are supported by copying the following command to your terminal: echo " ± ➦ ✔ ✘ ⚡"
. The result should look like this:
Require at least one Powerline font.
- Powerline Fonts
- WenQuanYi Mono for Powerline
-
original font WenQuanYi Zen Hei Mono
-
mixed with 7 characters from Powerline Fonts
-
- Success ( ✔ ) or failure ( ✘ ) of previous command
- Hostname
- Python virtualenv
- Git status
- Branch ( ) or detached head ( ➦ )
- Current branch / SHA1 in detached head state
- Dirty working directory ( ± , color change)
- Working directory
- Elevated (root) privileges ( ⚡ )
For correct show virtualenv name you should add source ~/.zshrc
to ~/.virtualenvs/postactivate hook or run echo 'source ~/.zshrc' >> ~/.virtualenvs/postactivate