3 ms·
Why not just use symlinks in your home dir? Like: cd ~/blog
by polm23 3y ago
Why not just use symlinks in your home dir? Like: cd ~/blog
- tedunangst 3y agoBecause I don't want to constantly update 6000 symlinks as I add and remove directories in other locations.
- hibbelig 3y agoThe 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.)
- tedunangst 3y agoNo, 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.
- hibbelig 3y agoI 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 “~/”.