From 447213fc519df3fd0741aa0cb52e641060d4df83 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 7 Jul 2009 10:42:08 +0200 Subject: Shortened pkg, updated pkg(1) and the zsh completion --- bin/pkg | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/pkg b/bin/pkg index f69cc0a..471f3a9 100755 --- a/bin/pkg +++ b/bin/pkg @@ -824,10 +824,13 @@ cd $PKG_DIR || die "Cannot cd $PKG_DIR" # Note: # wrap foobar "$1" <- the "" are neccessary here, since $1 is optional (and therefore may be empty) case $action in - add) pkg_add $* ;; - delete) pkg_remove $* ;; + add|install) + pkg_add $* + ;; + delete|remove) + pkg_remove $* + ;; info) pkg_info $* ;; - install) pkg_add $* ;; list) pkg_list $* ;; log) pkg_log $* ;; push) @@ -835,7 +838,6 @@ case $action in wrap pkg_push "$1" 'Pushing' ;; refresh) wrap pkg_refresh "$1" 'Refreshing' ;; - remove) pkg_remove $* ;; status) wrap pkg_status "$1" 'Checking package status' ;; update) pkg_update $* ;; upgrade|pull) -- cgit v1.2.3