diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-07-07 10:42:08 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-07-07 10:42:08 +0200 |
commit | 447213fc519df3fd0741aa0cb52e641060d4df83 (patch) | |
tree | 26124dbbe07063f0a76d4e1b1f75bbfdcf3ed3ec /provides/zsh | |
parent | 8038b277f89fdca7999451b2c3f60aee3b571862 (diff) |
Shortened pkg, updated pkg(1) and the zsh completion
Diffstat (limited to 'provides/zsh')
-rw-r--r-- | provides/zsh/completions/_pkg | 12 |
1 files changed, 8 insertions, 4 deletions
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' |