Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: auto-reflesh $PATH
- X-seq: zsh-users 11235
- From: "Kazuhiko Uebayashi" <kzhk75@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: auto-reflesh $PATH
- Date: Mon, 5 Mar 2007 05:53:20 +0900
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=P+s6wHfCKU+JQhlAC1X13f3FqIOwovaA3M7djsFDPT1dkjWMVU4d9EcopRq8Hc4h+pOsQ+WvH2OqlRjH+8P6kVi1bTwjoi/hvZHrKpseONgWipz3L5QK1eYUeSrSJtk+2nGwrAkYtlPpYgzww4Xi8tSlbils3GwhRRRGA3f6GDY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Txr+cp2La3kPG0JmMpBkK1+lv6S8pNPxwl9IJw7cdew44c90AjJhwW4bWPSehtFogwjcrKhNizbB1PC207WirZax8CXuvtqcH8aP88HybcXEkWLigkbSxGNrF4N6KEO6fmmPLEflCvdeOPWq2m04mQPR2q+/jNPY4MX3Ix5dY5M=
- In-reply-to: <20070303233214.GE3072@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <c12037010703031514h2730c96te5b721188deda41d@xxxxxxxxxxxxxx> <20070303233214.GE3072@xxxxxxxxxxxxxxx>
2007/3/4, Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>:
Bart Schaefer presented a solution for this and compsys in
zsh-users #8059¹.
¹ <http://www.zsh.org/mla/users/2004/msg01066.html>
Adding
_force_rehash() {
(( CURRENT == 1 )) && rehash
return 1 # Because we didn't really complete anything
}
zstyle ':completion:*' completer \
_oldlist _expand _force_rehash _complete
to my ~/.zshrc, auto-rehash works fine!
I found the same article in <http://zshwiki.org/home/examples/compsys/general>
Thanks everyone.
--
Kazuhiko Uebayashi
Messages sorted by:
Reverse Date,
Date,
Thread,
Author