# zsh

# Oh my zsh

Reference

# Steps

  1. install iterm2
  2. brew install zsh
  3. sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  4. brew install romkatv/powerlevel10k/powerlevel10k
  5. Add source /usr/local/opt/powerlevel10k/powerlevel10k.zsh-theme to ~/.zshrc
  6. p10k configure
  7. brew install zsh-syntax-highlighting
  8. Add source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh to ~/.zshrc
  9. brew install zsh-autosuggestions
  10. Add source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh to ~/.zshrc

# FAQ

# What if the diamond sign no show in p10k configure?

Just do brew reinstall for everything. Then when you are restarting iterm2, it will ask you to install the necessary font for p10k.

# tmux

work() { tmux new-session -A -s ${1:-work}; }

# Set it as default on GCloud VM

sudo vim /etc/passwd

Then change the last line from bash to zsh