Skip to content

Instantly share code, notes, and snippets.

@zdj
Created August 7, 2014 06:21
Show Gist options
  • Save zdj/b098e04ea108134d86a8 to your computer and use it in GitHub Desktop.
Save zdj/b098e04ea108134d86a8 to your computer and use it in GitHub Desktop.
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