Background paper texture mobile
terminalzsh

My Zsh Setup

How I set up Zsh with Oh My Zsh, Starship, autosuggestions, syntax highlighting, and NVM.

Author avatar

Peter Shaan

May 18, 2026


7 Views

Install Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install Oh My Zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Install Plugins

brew install zsh-autosuggestions
brew install zsh-syntax-highlighting

Install Starship Prompt

brew install starship

Install NVM

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash

.zshrc

export ZSH="$HOME/.oh-my-zsh"

ZSH_THEME=""

plugins=(git)

source $ZSH/oh-my-zsh.sh

source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

eval "$(starship init zsh)"

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"

# Aliases
alias gg="git add . && git commit -m"
alias ga="git add . && git commit --amend"
alias cc="clear"

Result

  • Starship — minimal, fast prompt with git status
  • zsh-autosuggestions — suggests commands as you type based on history
  • zsh-syntax-highlighting — colors valid commands green, invalid red
  • gg "message" — shortcut for stage all + commit

Back to Notes