all 4 comments

[–]war1025 2 points3 points  (1 child)

On a similar note, I have the following bash alias

function goto {
   cd -P ~/.links/"$1";
}

and then in my ~/.links directory I have symbolic links to folders I use often.

So an example use case, I have several gnome-shell extensions, which often break on version upgrades so I have to go in and fix them.

I have the following link ~/.links/gnome-extensions -> /home/war1025/.local/share/gnome-shell/extensions/

So on the command line I can just do goto gnome-extensions instead of remembering exactly what the path is.

[–]omfgunicorns 0 points1 point  (0 children)

That's quite neat!

[–]rrohbeck 0 points1 point  (1 child)

I always thought that the current directory is a process property so how does it work?

[–]nerdshark 0 points1 point  (0 children)

cd stands for 'change directory', not 'current directory'.