zsh-users
 help / color / mirror / code / Atom feed
From: "René Neumann" <lists@necoro.eu>
To: zsh-users@zsh.org
Subject: Re: tab completion bug?
Date: Thu, 23 Oct 2014 14:25:01 +0200	[thread overview]
Message-ID: <5448F39D.3080009@necoro.eu> (raw)
In-Reply-To: <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é


  reply	other threads:[~2014-10-23 12:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-23 12:15 TJ Luoma
2014-10-23 12:25 ` René Neumann [this message]
2014-10-23 12:43   ` TJ Luoma
2014-10-23 12:31 ` Peter Stephenson
2014-10-23 12:39   ` TJ Luoma
2014-10-23 13:06     ` Peter Stephenson
2014-10-23 13:26       ` TJ Luoma
2014-10-24  2:23         ` Bart Schaefer
2014-10-24 11:59           ` TJ Luoma
2014-10-24 12:06         ` Peter Stephenson
2014-10-24 19:55           ` TJ Luoma
2014-10-23 12:42   ` Peter Stephenson
2014-10-23 12:44 ` Eric & Jolanda

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5448F39D.3080009@necoro.eu \
    --to=lists@necoro.eu \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).