I have this:
cd $(dirname $(dirname $(dirname "$0"))) &&
which will cd to project root.
Is there shorthand for this somehow, where I can just be like:
cd 3 && # not quite, but you get the idea
or whatever, I mean why not you know?
Maybe a command like so would be ideal:
cdx 3 &&
cd has no idea that 3 is not a file or directory.