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.
Look into zoxide.
z direc
Will take you to the most used directory starting with “direc” eg “/home/me/random/directory”
I’ve tried things like that before but never got on with them. I found when I had many projects with similar directory structures it was easy to end up in the wrong place and took more thought to get to the right place than just cding