Commit df942673b3e24ad09aca81a883fb6066579498f4
1 parent
d8a3007c48
Added bundle-list command.
The `bundle-list` command is used to list the currently specified bundles.
Showing 2 changed files with 16 additions and 1 deletions Side-by-side Diff
antigen.zsh
... | ... | @@ -215,6 +215,16 @@ bundle-apply () { |
215 | 215 | compinit -i |
216 | 216 | } |
217 | 217 | |
218 | +bundle-list () { | |
219 | + # List all currently installed bundles | |
220 | + if [[ -z "$bundles" ]]; then | |
221 | + echo "You don't have any bundles." >&2 | |
222 | + return 1 | |
223 | + else | |
224 | + echo-non-empty "$bundles" | awk '{print $1 " " $2 " " $3}' | |
225 | + fi | |
226 | +} | |
227 | + | |
218 | 228 | # Does what it says. |
219 | 229 | echo-non-empty () { |
220 | 230 | echo "$@" | while read line; do |