Hacker News new | ask | show | jobs
by hibbelig 928 days ago
The other option was to put them into CDPATH instead... 6,000 of them?

(I guess you are using an alternative to CDPATH, but you haven't said.)

1 comments

No, because you put the parent directory in CDPATH. If I have funstuff/blogs/pics, funstuff/blogs/foods, funstuff/blogs/cats, etc., I put funstuff/blogs in CDPATH and now cd cats just works. If I created a pile of symlinks, I would have to individually create one symlink each for ~/pics, ~/foods, ~/cats, etc. And also type cd ~/cats.
I see. Thank you, I missed that aspect.

Of course, adding a symlink “~/f” that points to “funstuff” would work around the limitation, at the expense of typing two more characters. Four more if you count the leading “~/”.