Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: auto-reflesh $PATH



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