From cc14672d25ec814d2db41e9b3a9376d1e2e57cd9 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 18 Oct 2010 18:54:47 +0200 Subject: make "ct new " also work for existing packages --- provides/zsh/completions/_ct | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'provides') 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} } } -- cgit v1.2.3