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

Re: Path does not update until I logout/log in



John <da_audiophile@xxxxxxxxx> writes:

>> You need to run rehash
>
>> 
>> or use something like 
>> _force_rehash() {
>>     (( CURRENT == 1 )) && rehash
>>     return 1    # Because we didn't really complete anything
>> }
>> zstyle ':completion:::::' completer _force_rehash _complete _approximate
>
>
> Thank you all for the replies and especially to Daniel for the above
> which is working for me.

This should be enough:
zstyle ':completion::complete:*' rehash true

-- 
Christian Neukirchen  <chneukirchen@xxxxxxxxx>  http://chneukirchen.org



Messages sorted by: Reverse Date, Date, Thread, Author