Skip to content

Instantly share code, notes, and snippets.

@magarcia
Created March 2, 2016 00:40
Show Gist options
  • Save magarcia/48a55b26c0750669abe4 to your computer and use it in GitHub Desktop.
Save magarcia/48a55b26c0750669abe4 to your computer and use it in GitHub Desktop.
# load zgen
source "${HOME}/proj/zgen/zgen.zsh"
# check if there's no init script
if ! zgen saved; then
echo "Creating a zgen save"
zgen oh-my-zsh
# plugins
zgen oh-my-zsh plugins/git
zgen oh-my-zsh plugins/sudo
zgen oh-my-zsh plugins/command-not-found
zgen load zsh-users/zsh-syntax-highlighting
zgen load /path/to/super-secret-private-plugin
# bulk load
zgen loadall <<EOPLUGINS
zsh-users/zsh-history-substring-search
/path/to/local/plugin
EOPLUGINS
# ^ can't indent this EOPLUGINS
# completions
zgen load zsh-users/zsh-completions src
# theme
zgen oh-my-zsh themes/arrow
# save all to init script
zgen save
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment