Navigating around in your shell

https://programming.dev/post/6321543

Navigating around in your shell - programming.dev

Good article. Rather than aliasing `cd …/…" etc. I’ve got this function in my setup:

up () { local x='' for i in $(seq ${1:-1}) do x="$x../" done cd $x }

This lets me do up 4 to go up 4 directories.

You could also do a “up” for one up “upp” for 2 and “upppp” for 4 because of fun
True. That is something that could be done.