Skip to content

Instantly share code, notes, and snippets.

@bigsan
Created June 22, 2015 05:55
Show Gist options
  • Save bigsan/730865b05e1cdccbff33 to your computer and use it in GitHub Desktop.
Save bigsan/730865b05e1cdccbff33 to your computer and use it in GitHub Desktop.
.zshrc using zgen
# load zgen
source "${HOME}/.zgen/zgen/zgen.zsh"
ZSHRC="${HOME}/.zshrc"
# if this file is newer than init file
if ! zgen saved || [ "${ZSHRC}" -nt "${ZGEN_INIT}" ] ; 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 oh-my-zsh plugins/nvm
#zgen oh-my-zsh plugins/npm
zgen oh-my-zsh plugins/brew
zgen oh-my-zsh plugins/brew-cask
zgen oh-my-zsh plugins/sublime
zgen oh-my-zsh plugins/common-aliases
zgen oh-my-zsh plugins/osx
zgen oh-my-zsh plugins/web-search
zgen oh-my-zsh plugins/history-substring-search
zgen load zsh-users/zsh-syntax-highlighting
# completions
zgen load zsh-users/zsh-completions src
# theme
zgen oh-my-zsh themes/af-magic
# 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