February 1, 2023

Mac Terminal Setup

Install HomeBrew

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

Install iTerm2 with brew:

brew install --cask iterm2

Remove Title Bar

iTerm2 Preferences: Appearance > General > Theme: Minimal

Install iTerm2 — Snazzy theme

(curl -Ls https://raw.githubusercontent.com/sindresorhus/iterm2-snazzy/main/Snazzy.itermcolors > /tmp/Snazzy.itermcolors && open /tmp/Snazzy.itermcolors)
iTerm2 Preferences: Profiles > Colors > Color Presets: Snazzy

You can find other themes here

Install Oh My Zsh and zplug

# Oh My Zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# zplug
brew install zplug

Configure ~.zshrc

# ~.zshrc
export ZSH=~/.oh-my-zsh
# disable oh-my-zsh themes for pure prompt
ZSH_THEME=""
source $ZSH/oh-my-zsh.sh
export ZPLUG_HOME=$(brew --prefix)/opt/zplug
source $ZPLUG_HOME/init.zsh
zplug "mafredri/zsh-async", from:github
zplug "sindresorhus/pure", use:pure.zsh, from:github, as:theme
zplug load
# Install plugins if there are plugins that have not been installed
if ! zplug check --verbose; then
    printf "Install? [y/N]: "
    if read -q; then
        echo; zplug install
    fi
fi

Syntax highlighting

zplug "zdharma/fast-syntax-highlighting", as:plugin, defer:2

Auto suggestions

zplug "zsh-users/zsh-autosuggestions", as:plugin, defer:2
Software Architect & Web Developer
CONTACT
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram