Catalina comes with zsh as the default shell.
zsh --version
which zsh
cd ~/
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
#.zshrc
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# This loads nvm
Update Changes
source ~/.zshrc
Download MesloLGS NF Font
$ZSH_CUSTOM is the director for Oh My Zsh custom ~/.oh-my-zsh/custom
git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
nano ~/.zshrc
#.zshrc
#change theme
ZSH_THEME="powerlevel10k/powerlevel10k"
#auto correction
ENABLE_CORRECTION="true"
#add plugins
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
update changes
source ~/.zshrc
You might get a Permission issue when updating the changes.
# .zshrc
# Path to your oh-my-zsh installation.
ZSH_DISABLE_COMPFIX=true
export ZSH="/Users/cwc/.oh-my-zsh"
If the first method doesn't work
chmod 755 /usr/local/share/zsh
chmod 755 /usr/local/share/zsh/site-functions
update changes
source ~/.zshrc
Configure p10k theme.
#run configuration
p10k configure
Shorten up your directory path
nano ~/.p10k.zsh
#.p10k.zsh
typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_last
typeset -g POWERLEVEL9K_SHORTEN_DIR_LENGTH=1
https://github.com/lysyi3m/macos-terminal-themes
- Molokai (I use)