Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: tab completion bug?
- X-seq: zsh-users 19268
- From: René Neumann <lists@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: tab completion bug?
- Date: Thu, 23 Oct 2014 14:25:01 +0200
- In-reply-to: <CADjGqHubg=UK+0awfnrr48YFLRy1gPC+44q7GscMM0rADMm=cw@mail.gmail.com>
- 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: <CADjGqHubg=UK+0awfnrr48YFLRy1gPC+44q7GscMM0rADMm=cw@mail.gmail.com>
Am 23.10.2014 14:15, schrieb TJ Luoma:
> I have these lines in my ~/.zshrc:
>
> db="${HOME}/Dropbox"
>
> sites="$db/sites"
Unrelated to the issue itself: Why not use the zsh-feature 'named
directories' instead?
hash -d db=~/Dropbox
hash -d sites=~db/sites
:)
And just while looking this feature up, I noticed that you don't
necessarily need the 'hash -d': When the name after the '~' is the name
of a variable starting with '/', it uses this. I.e. you can already use
'cd ~sites' instead of 'cd $sites'
- René
Messages sorted by:
Reverse Date,
Date,
Thread,
Author