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 --- provides/zsh/completions/_pkg | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'provides/zsh') diff --git a/provides/zsh/completions/_pkg b/provides/zsh/completions/_pkg index 4fe4922..33992fd 100644 --- a/provides/zsh/completions/_pkg +++ b/provides/zsh/completions/_pkg @@ -9,8 +9,8 @@ typeset expl function _pkg_action () { _wanted action expl 'action' \ - compadd add install delete eval remove info list \ - log pull push refresh status update upgrade + compadd add eval remove info list \ + log pull push refresh status update } function _pkg_installed () { @@ -31,13 +31,13 @@ function _pkg_notinstalled () { function _pkg_args { if (( CURRENT == 2 )) { case ${words[1]} in - changelog|check|delete|log|pull|push|refresh|remove|status|upgrade) + log|pull|push|refresh|remove|status) _pkg_installed ;; info) _pkg_all ;; - add|install) + add) _pkg_notinstalled ;; eval) @@ -84,5 +84,9 @@ _arguments \ '*--checklinks-options[options for checklinks]:option' \ '--packagedir[package directory]:directory:_files -/' \ '--packageroot[package root]:url' \ + '--colours[use colours]' \ + '--no-colours[No colours]' \ + '--progress[show progress bar]' \ + '--no-progress[No progress bar]' \ ':action:_pkg_action' \ '*::arguments:_pkg_args' -- cgit v1.2.3