From 387fbc4d4baf138e29c8470020c854c11242a875 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Date: Fri, 22 Mar 2013 18:33:15 +0530 Subject: [PATCH] Internalize library loading functions. --- antigen.zsh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/antigen.zsh b/antigen.zsh index 433158f..5f8f3b6 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -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 ' >&2 echo 'Where 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 -- 2.0.0