Commit fd547d95864d869b239206466a2b19b9094a9d7a

Authored by Shrikant Sharat
1 parent 499c0dd5dc

An `antigen` command, syntax sugar for antigen commands.

Showing 1 changed file with 8 additions and 0 deletions Side-by-side Diff

... ... @@ -269,6 +269,14 @@ antigen-list () {
269 269 fi
270 270 }
271 271  
  272 +# A syntax sugar to avoid the `-` when calling antigen commands. With this
  273 +# function, you can write `antigen-bundle` as `antigen bundle` and so on.
  274 +antigen () {
  275 + local cmd="$1"
  276 + shift
  277 + "antigen-$cmd" "$@"
  278 +}
  279 +
272 280 # Echo the bundle specs as in the record. The first line is not echoed since it
273 281 # is a blank line.
274 282 -antigen-echo-record () {