diff options
author | Daniel Friesel <derf@finalrewind.org> | 2010-10-18 18:54:47 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2010-10-18 18:54:47 +0200 |
commit | cc14672d25ec814d2db41e9b3a9376d1e2e57cd9 (patch) | |
tree | 9b2bfd43e3bb83b3cf89280feadaa02a68c6f50f /provides/zsh/completions/_ct | |
parent | 80dff8aecba5360e126123c87c4bbf318045ddc6 (diff) |
make "ct new <package> <files>" also work for existing packages
Diffstat (limited to 'provides/zsh/completions/_ct')
-rw-r--r-- | provides/zsh/completions/_ct | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/provides/zsh/completions/_ct b/provides/zsh/completions/_ct index 8afb9af..caa212c 100644 --- a/provides/zsh/completions/_ct +++ b/provides/zsh/completions/_ct @@ -52,7 +52,8 @@ function _ct_args { compadd local remote ;; n|new) - _message 'New package name' + _message 'New or existing package name' + _ct_installed ;; *) _message 'no more arguments' @@ -78,6 +79,8 @@ function _ct_args { _ct_notinstalled } elif [[ ${words[1]} == (rm|remove) ]] { _ct_installed + } elif [[ ${words[1]} == (n|new) ]] { + _files -W ${HOME} } } |