alias !=“cd …”
Approximative syntax but you get the idea.
!!
is the last command in my shell.
.....
for zsh usersExcuse me what? I’ve been multi cd’ing for years like a chump?
Exactly. The fucking what now?
Doesn’t work on my machine… is it a setting that needs to be enabled or something?
z myDir
Or the alias I have set up
……
Ya, this is the way. I use
all the time
Once you’ve typed … you know if you type more dots it’s to go up more dir, so you don’t really need two dots for each additional dir.
I kept saying “cd up” in my mind so I just made an alias for
cdu
, became a reflex within the next day
The
history
of the CTO at a previous job was filled withdc
andsl
because he was a fucking moron. Yes I’m still bitter that he earned way more money than me who had to fix all his mess.You could have gifted him some silly fun with the
sl
package.
Depending on where you are, maybe just “cd”.
Smh when are you going to upgrade to dvd
cd …
<Up arrow>
<Up arrow>
<Up arrow>
<Up arrow>
cd …
history
!1
!1
!1
…
cd .. !! !! !!
cd … ls cd … ls cd … ls cd … ls
cd …/…
More like cd… dir cd… dir cd…
Childhood me with only MS-DOS machines is all feeling nostalgic.
I alias
..
tocd ..
Works for me 🤷🏻
I feel like thats eventually going to case problems when you run a script…
I do that too!
I also aliasto
cd ../..
. I’ll be honest, I often forget to do it, but in theory it can speed things up.
cd .. !! !! !!
cd ..
⭡ ⏎
⭡ ⏎
⭡ ⏎
Oh, shit.
square
cd .. && ls !! !! !! !!
What’s so surprising?? What did you see in that dir??
Double-bang repeats the previous command. Great if you forget
sudo
.$ rm -rf <folder> permission denied $ sudo !!
Haha yeah I was just being silly