From ada1cdfdf960047892bb9632e2c81581991acef6 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 7 Jul 2009 11:03:46 +0200 Subject: pkg: Added short actions (pkg a = add etc) --- provides/zsh/completions/_pkg | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'provides/zsh/completions') diff --git a/provides/zsh/completions/_pkg b/provides/zsh/completions/_pkg index 33992fd..36f0081 100644 --- a/provides/zsh/completions/_pkg +++ b/provides/zsh/completions/_pkg @@ -31,26 +31,26 @@ function _pkg_notinstalled () { function _pkg_args { if (( CURRENT == 2 )) { case ${words[1]} in - log|pull|push|refresh|remove|status) + l|log|f|pull|p|push|r|refresh|rm|remove|s|status) _pkg_installed ;; - info) + i|info) _pkg_all ;; - add) + a|add) _pkg_notinstalled ;; - eval) + e|eval) _message 'shell code for evaluation' _wanted function expl 'internal function' \ compadd $(grep -E '^\S*\s*\(\)\s*{' =pkg | cut -d ' ' -f 1) \ $(grep -E 'function \S* (\(\) )?{' =pkg | cut -d ' ' -f 2) ;; - list) + ls|list) _wanted something expl 'list mode' \ compadd all local not-installed ;; - update) + u|update) _wanted mode expl 'update target' \ compadd local remote ;; @@ -58,7 +58,7 @@ function _pkg_args { _message 'no more arguments' ;; esac - } elif [[ ${words[1]} = 'eval' ]] { + } elif [[ ${words[1]} == e(val|) ]] { _message 'shell code for evaluation' if (( CURRENT == 3 )) { case ${words[2]} in -- cgit v1.2.3