Skip to content

Instantly share code, notes, and snippets.

@niyaton
Last active December 27, 2016 15:16
Show Gist options
  • Save niyaton/ced87bea24e23aa6df4055f7d3ca5e1f to your computer and use it in GitHub Desktop.
Save niyaton/ced87bea24e23aa6df4055f7d3ca5e1f to your computer and use it in GitHub Desktop.
# Checking whther zplug is installed
if [[ ! -d ~/.zplug ]]; then
git clone https://github.com/zplug/zplug ~/.zplug
fi
cat <<EOT > ~/.zshrc
# Essential
source ~/.zplug/init.zsh
# zplug check returns true if all packages are installed
# Therefore, when it returns false, run zplug install
if ! zplug check; then
zplug install
fi
zplug "niyaton/zsh", at:"linux-zplug", use:"*.zsh"
zplug load --verbose
EOT
zsh -c "zplug install && zplug clear"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment