diff --git a/antigen.zsh b/antigen.zsh index 5b87f4e..407645a 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -215,6 +215,16 @@ bundle-apply () { compinit -i } +bundle-list () { + # List all currently installed bundles + if [[ -z "$bundles" ]]; then + echo "You don't have any bundles." >&2 + return 1 + else + echo-non-empty "$bundles" | awk '{print $1 " " $2 " " $3}' + fi +} + # Does what it says. echo-non-empty () { echo "$@" | while read line; do diff --git a/tests/main.t b/tests/main.t index 2dbf2d6..915eb3c 100644 --- a/tests/main.t +++ b/tests/main.t @@ -1,3 +1,8 @@ Load antigen - $ bundle-cleanup + $ bundle-list + You don't have any bundles. + [1] + $ bundle lol + $ bundle-list + lol https://github.com/robbyrussell/oh-my-zsh.git plugins/lol