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

Re: tab completion bug?



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