Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Turn off user dir hashing
- X-seq: zsh-users 15478
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Turn off user dir hashing
- Date: Sun, 24 Oct 2010 11:39:04 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=/u93I24JVLL+ONRQbC7AxgrmuOf9wFZLeE0PS7bl/tA=; b=mj9C6QE+IXurJxKAaUW7+SsYRn8r1cZKuBtgmAG7L6MHn8oNv7ldRmcfTaV1So0chw CdIaNoCb+b3NPMATFkaetoLxM7oFYArmhK/kxShF7LteMoYHZSy4w0fw/xaN3YRzjuV7 PtWaa0ht7LQyiQfNwKC4wUtfYaAVvmuR27WVw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=sDGUI2u4drOX71N7SwMLgEDiVnoACvNRGULjHzRZUq69xFUR/c8MrTewB/b/sqI64G LQouOyeOM5hZL1W/uzbu9yXgknj+LozH9p/9MwAKgQxTg1X+AL+lHqICrVTJ4JTvFTnb 15DYdVUy64d5ZfWj0zg/ilEHQrrq1URW9vsK8=
- In-reply-to: <20101022183032.GA3382@matzbach>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20101022183032.GA3382@matzbach>
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
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author