Skip to content

Instantly share code, notes, and snippets.

@vocolboy
Last active November 15, 2020 09:29
Show Gist options
  • Save vocolboy/efa53e1c9c19fe9cd8609da35e16972a to your computer and use it in GitHub Desktop.
Save vocolboy/efa53e1c9c19fe9cd8609da35e16972a to your computer and use it in GitHub Desktop.
pretty zsh ( iTerm2 , Zsh , Oh My Zsh , Powerlevel9K )

Installation

iTerm2

brew tap caskroom/cask
brew cask instal iterm2

Zsh

# Install zsh
brew install zsh

# Default shell to zsh
sudo sh -c "echo $(which zsh) >> /etc/shells" 
chsh -s $(which zsh)

Oh My Zsh

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

Theme

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

p10k configure 

Font (option)

homebrew/cask-fonts
brew cask install font-saucecodepro-nerd-font

Pluging

zsh-autosuggestions (option)(perfect fit)

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

After Instll

  1. chose font Preferences > Profiles > Text > Change Font > SauceCodePro Nerd Font

  2. (option) choses your color schemes https://iterm2colorschemes.com/

  3. (option) if you want more prompt segments ( .zshrc L:100 ~ L:107 )
    see https://github.com/bhilburn/powerlevel9k#available-prompt-segments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment