Permalink
Browse files

Internalize library loading functions.

  • Loading branch information...
1 parent ca73028 commit 387fbc4d4baf138e29c8470020c854c11242a875 @sharat87 sharat87 committed Mar 22, 2013
Showing with 8 additions and 4 deletions.
  1. +8 −4 antigen.zsh
View
@@ -373,9 +373,9 @@ antigen-cleanup () {
antigen-use () {
if [[ $1 == oh-my-zsh ]]; then
- antigen-lib $@
+ -antigen-use-oh-my-zsh
elif [[ $1 == prezto ]]; then
- antigen-prezto-lib $@
+ -antigen-use-prezto
else
echo 'Usage: antigen-use <library-name>' >&2
echo 'Where <library-name> is any one of the following:' >&2
@@ -385,18 +385,22 @@ antigen-use () {
fi
}
-antigen-lib () {
+-antigen-use-oh-my-zsh () {
if [[ -z "$ZSH" ]]; then
export ZSH="$(-antigen-get-clone-dir "$ANTIGEN_DEFAULT_REPO_URL")"
fi
antigen-bundle --loc=lib
}
-antigen-prezto-lib () {
+-antigen-use-prezto () {
antigen-bundle sorin-ionescu/prezto
export ZDOTDIR=$ADOTDIR/repos/
}
+# For backwards compatibility.
+antigen-lib () { -antigen-use-oh-my-zsh }
+antigen-prezto-lib () { -antigen-use-prezto }
+
antigen-theme () {
if [[ "$1" != */* && "$1" != --* ]]; then

0 comments on commit 387fbc4

Please sign in to comment.