Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Turn off user dir hashing
- X-seq: zsh-users 15479
- From: Eike von Seggern <eikevons@xxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Subject: Re: Turn off user dir hashing
- Date: Sun, 24 Oct 2010 12:05:07 +0200
- Cc: Zsh Users <zsh-users@xxxxxxx>
- In-reply-to: <AANLkTi=BZiCmZgAyQ18fGKJyEZipXKzpkMaJWnwuKs1e@xxxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: Mikael Magnusson <mikachu@xxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20101022183032.GA3382@matzbach> <AANLkTi=BZiCmZgAyQ18fGKJyEZipXKzpkMaJWnwuKs1e@xxxxxxxxxxxxxx>
On Sun, Oct 24, 2010 at 11:39 +0200, Mikael Magnusson wrote:
> On 22 October 2010 20:30, Eike von Seggern <eikevons@xxxxxxxx> wrote:
>> Hi all,
>>
>> is it possible to turn of the hashing of named directories during
>> completion? I'm using named directories as
>>
>> hash -d foo=${HOME}/bar
>>
>> but the completion of user directories interferes and forces me to type
>> more characters as necesarry.
>>
>> I tried to empty the hash table (hash -d -r) and it is working. But
>> during the first completion the named user directories are added to the
>> table again:
>>
>> % hash -d -r
>> % hash -d
>> % cd ~<Tab>
>> user
>> [...]
>>
>> It's probably hidden somewhere in a completion widget/zstyle (I'm not
>> really familiar with the nomenclature)?
>
> zstyle ':completion:*:-tilde-:*' group-order named-directories
>
> will complete named directories before users, and if you use tag-order
> instead of group-order, it will only complete named directories (as
> long as there is at least one named directory).
>
> zstyle ':completion:*:-tilde-:*' tag-order named-directories
Thank you, that's what I was looking for.
Best,
eike
Messages sorted by:
Reverse Date,
Date,
Thread,
Author