summaryrefslogtreecommitdiff
path: root/provides/zsh/completions/_ct
diff options
context:
space:
mode:
Diffstat (limited to 'provides/zsh/completions/_ct')
-rw-r--r--provides/zsh/completions/_ct5
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}
}
}