Hacker News new | ask | show | jobs
by tedunangst 926 days ago
Because I don't want to constantly update 6000 symlinks as I add and remove directories in other locations.
1 comments

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.)

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 “~/”.