Last active
December 27, 2016 15:16
-
-
Save niyaton/ced87bea24e23aa6df4055f7d3ca5e1f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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