Created
August 7, 2014 06:21
-
-
Save zdj/b098e04ea108134d86a8 to your computer and use it in GitHub Desktop.
an init function for https://github.com/zsh-users/antigen
This file contains hidden or 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
initAntigen() { | |
antigenHome="${HOME}/.antigen" | |
antigenConfig="${antigenHome}/antigen.zsh" | |
if [[ -f ${antigenConfig} ]] ; then | |
else | |
echo | |
echo "antigen.zsh not currently installed in ${antigenHome}" | |
echo "downloading and installing antigen.zsh to ${antigenConfig}" | |
echo | |
mkdir -p ${antigenHome} | |
curl -L https://raw.githubusercontent.com/zsh-users/antigen/master/antigen.zsh > ${antigenConfig} | |
if [[ $? = 1 ]] ; then | |
echo "error: could not source ${antigenConfig}" | |
exit 1 | |
fi | |
fi | |
source ${antigenConfig} | |
} | |
# Initialize antigen | |
initAntigen | |
# Load the oh-my-zsh's library, bundles, etc | |
# antigen use oh-my-zsh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment