upvote
you should look into autojump which has `jc` (jump child), or other similar flavours of "smart cd" (z, fzf, etc)
reply
Thanks, but I like that this is just a small, simple bash function without the need to install 3rd-party software.
reply