Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
aliveupstairs
· 6y ago · 0 comments
If you are using absolute paths, I found this easier to get used to:
hash -d b=/home/me/bin
Then you call foo as:
~b/foo
I have an array of these defined to my most used directories.
Comments
[–]
mineo
6y ago
I believe hash -d and supsequent expansion of those paths only works in ZSH, which calls this "static named directories" (
http://zsh.sourceforge.net/Doc/Release/Expansion.html#Static...
).