Commit 387fbc4d4baf138e29c8470020c854c11242a875
1 parent
ca730285cd
Internalize library loading functions.
Showing 1 changed file with 8 additions and 4 deletions Side-by-side Diff
antigen.zsh
... | ... | @@ -373,9 +373,9 @@ antigen-cleanup () { |
373 | 373 | |
374 | 374 | antigen-use () { |
375 | 375 | if [[ $1 == oh-my-zsh ]]; then |
376 | - antigen-lib $@ | |
376 | + -antigen-use-oh-my-zsh | |
377 | 377 | elif [[ $1 == prezto ]]; then |
378 | - antigen-prezto-lib $@ | |
378 | + -antigen-use-prezto | |
379 | 379 | else |
380 | 380 | echo 'Usage: antigen-use <library-name>' >&2 |
381 | 381 | echo 'Where <library-name> is any one of the following:' >&2 |
... | ... | @@ -385,18 +385,22 @@ antigen-use () { |
385 | 385 | fi |
386 | 386 | } |
387 | 387 | |
388 | -antigen-lib () { | |
388 | +-antigen-use-oh-my-zsh () { | |
389 | 389 | if [[ -z "$ZSH" ]]; then |
390 | 390 | export ZSH="$(-antigen-get-clone-dir "$ANTIGEN_DEFAULT_REPO_URL")" |
391 | 391 | fi |
392 | 392 | antigen-bundle --loc=lib |
393 | 393 | } |
394 | 394 | |
395 | -antigen-prezto-lib () { | |
395 | +-antigen-use-prezto () { | |
396 | 396 | antigen-bundle sorin-ionescu/prezto |
397 | 397 | export ZDOTDIR=$ADOTDIR/repos/ |
398 | 398 | } |
399 | 399 | |
400 | +# For backwards compatibility. | |
401 | +antigen-lib () { -antigen-use-oh-my-zsh } | |
402 | +antigen-prezto-lib () { -antigen-use-prezto } | |
403 | + | |
400 | 404 | antigen-theme () { |
401 | 405 | |
402 | 406 | if [[ "$1" != */* && "$1" != --* ]]; then |