Skip to content

Instantly share code, notes, and snippets.

@ganler
Created August 20, 2025 16:49
Show Gist options
  • Select an option

  • Save ganler/c7ed0a4c6a6c44333a194edf249a694d to your computer and use it in GitHub Desktop.

Select an option

Save ganler/c7ed0a4c6a6c44333a194edf249a694d to your computer and use it in GitHub Desktop.
omz
# zsh
# git clone https://github.com/jotyGill/ezsh
# cd ezsh
# ./install.sh -c # only run with '-c' the first time, running multiple times will duplicate history entries
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# pure
mkdir -p "$HOME/.zsh"
git clone https://github.com/sindresorhus/pure.git "$HOME/.zsh/pure"
# autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# syn
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
#
sed -i.bak 's/plugins=(git)/plugins=(git z zsh-syntax-highlighting zsh-autosuggestions)/' "$HOME/.zshrc"
# Add the Pure theme activation commands to the end of .zshrc
printf '%s\n' '
# Activate Pure theme
fpath+=("$HOME/.zsh/pure")
autoload -U promptinit; promptinit
prompt pure
' >> "$HOME/.zshrc"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment