zsh, oh-my-zsh and powerlevel9k

Cli

installation

1
2
3
4
5
6
7
8
9
10
# zsh
brew install zsh zsh-completions
chsh -s $(which zsh)

# oh-my-zsh
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh

# powerlevel9k
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
echo 'ZSH_THEME="powerlevel9k/powerlevel9k"' >> ~/.zshrc

edit ~/.zshrc

1
2
3
4
5
6
7
8
9
export ZSH=$HOME/.oh-my-zsh
ZSH_THEME="powerlevel9k/powerlevel9k"
plugins=(git)
source $ZSH/oh-my-zsh.sh
source /usr/local/share/zsh-history-substring-search/zsh-history-substring-search.zsh

POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=0
POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=2
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status command_execution_time time)

useful plugin

reference

https://github.com/robbyrussell/oh-my-zsh/wiki/Installing-ZSH
https://github.com/robbyrussell/oh-my-zsh
https://github.com/bhilburn/powerlevel9k/wiki/Install-Instructions