From fd547d95864d869b239206466a2b19b9094a9d7a Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Date: Fri, 13 Jul 2012 20:52:34 +0530 Subject: [PATCH] An `antigen` command, syntax sugar for antigen commands. --- antigen.zsh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/antigen.zsh b/antigen.zsh index a8ee572..30f8f1e 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -269,6 +269,14 @@ antigen-list () { fi } +# A syntax sugar to avoid the `-` when calling antigen commands. With this +# function, you can write `antigen-bundle` as `antigen bundle` and so on. +antigen () { + local cmd="$1" + shift + "antigen-$cmd" "$@" +} + # Echo the bundle specs as in the record. The first line is not echoed since it # is a blank line. -antigen-echo-record () { -- 2.0.0