If you are using Bash you can automate creating your aliases you have for:
...='cd ../..'
etc...
by looping a range of numbers (of your choice, of course) to create each alias in sequence:
dota='...'# Preset alias starting point, keydotb='../../'# Preset match starting point, valuefor int in{1..20};do
alias${dota}='cd '"${dotb}"# Create the next alias dota="${dota}"'.'# increment key stringdotb="${dotb}"'../'# increment value stringdone
unset int dota dotb # cleanup
In this way you can set more than just a few aliases of this sort and go back as many as 20 directories (or more, of course). Seems pointless or redundant to some, but I find myself navigating dirs this way often lol; maybe I'm just weird. If you're not interested then I'll just remove this post...
The only reason I posted is because I already do it this way and when I seen your post here I thought you or someone else might be interested in my method.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The
...
(dot dot dot...) is genius!Damn, this is nuts! 👀😮
Massive thanks for sharing all of these 😍💯
If you are using Bash you can automate creating your aliases you have for:
...='cd ../..'
etc...
by looping a range of numbers (of your choice, of course) to create each alias in sequence:
In this way you can set more than just a few aliases of this sort and go back as many as 20 directories (or more, of course). Seems pointless or redundant to some, but I find myself navigating dirs this way often lol; maybe I'm just weird. If you're not interested then I'll just remove this post...
The only reason I posted is because I already do it this way and when I seen your post here I thought you or someone else might be interested in my method.