3 ms·
> So no more `cd /htdocs` on my laptop. If you use zsh I recommend using hashed directories. So this in your .zshrc: hash -d htdocs=~/path/to/htdocs Lets
by kbd 7y ago
> So no more `cd /htdocs` on my laptop.
If you use zsh I recommend using hashed directories. So this in your .zshrc:
hash -d htdocs=~/path/to/htdocs
Lets you `cd ~htdocs`.
Alternatively, use 'fasd' or 'z' and you can just `z htd` without preconfiguring anything or caring where htdocs is.
Or, of course, you could just create the symlinks in your $HOME instead of in root.