From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15545 invoked by alias); 18 Apr 2013 23:38:12 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17760 Received: (qmail 11339 invoked from network); 18 Apr 2013 23:38:01 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <130418163739.ZM8718@torch.brasslantern.com> Date: Thu, 18 Apr 2013 16:37:39 -0700 In-reply-to: Comments: In reply to Nicholas Riley "Lazy loading completions" (Apr 18, 5:23pm) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: Lazy loading completions MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Apr 18, 5:23pm, Nicholas Riley wrote: } Subject: Lazy loading completions } } compctl -K virtualenvwrapper_load $(echo ${_VIRTUALENVWRAPPER_API}) compctl has been mostly deprecated for several years. You should look into running compinit from your shell startup to set up more modern completions. In fact, someone should suggest to Doug Hellmann that he stop using compctl commands in virtualenvwrapper.sh ... compctl won't work at all for someone using compinit unless they've configured it to fall through to old-style completions when no modern completion is found. } source /usr/local/bin/virtualenvwrapper_lazy.sh } _virtualenvwrapper_load_compctl() { } compctl + ${=_VIRTUALENVWRAPPER_API} } virtualenvwrapper_load } eval ${$(compctl | egrep '^'$_comp_command1' -K')[3]} } } ?? Where is the value of $_comp_command1 coming from here? It's not set by virtualenvwrapper_load or virtualenvwrapper.sh as far as I can tell, so that egrep is doing nothing ...? } compctl -K _virtualenvwrapper_load_compctl ${=_VIRTUALENVWRAPPER_API} With compinit loaded, I believe what you want here is _virtualenvwrapper_load_compctl() { unset '_comps['${(k)^_comps[(R)_virtualenvwrapper_load_compctl]}']' virtualenvwrapper_load # Until Doug gets his act together zmodload -i zsh/compctl zstyle ':completion:*' use-compctl yes _default # After togetherness # _normal } compdef _virtualenvwrapper_load_compctl ${=_VIRTUALENVWRAPPER_API} but I'm not entirely confident.