# zsh
# Oh my zsh
# Steps
- install iterm2
brew install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
brew install romkatv/powerlevel10k/powerlevel10k
- Add
source /usr/local/opt/powerlevel10k/powerlevel10k.zsh-theme
to~/.zshrc
p10k
configurebrew install zsh-syntax-highlighting
- Add
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
to~/.zshrc
brew install zsh-autosuggestions
- 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