I'm not saying you should all go out and set up aliases to enable your various typos and slip-ups, but I honestly don't know why I didn't do this 25 years ago.

alias cd..='cd ..'

#bash #UNIX #Shell #UnixShell #POSIX

@rl_dane
alias cat='cowsay cat'
alias ls='cowsay ls'
alias lspci=... you get it :)
@rl_dane one of my favorite things about zsh (which I recently came back to...I used it on my old Macbook and never switched when I went to Linux until last week): it's got aliases without cd by default (ex. ..='cd ..')! Might also just be an oh-my-zsh thing but I love it!

@roguefoam

I mean, that can be done in bash with a single alias, but if you're happy with zsh, I'm happy. ;)

@rl_dane I raise you a few "alias ..='cd ..'", "alias ...='cd ../..'" etc as deep as you like ;-)

@simondassow

I see your "it's alias ......= all the way down, young man" and raise you a "I have my own 'smart cd' command that searches an index of directories under my home directory and cd's to it if there's only one, or calls fzf for you to search through the results, and is much faster than fzf's cd **something** magic (or whatever that syntax was ;)"

@rl_dane `alias celar='rm -rf .'`
@rl_dane
Got alias sl='ls'
πŸ˜…

@jhx

No way, sudo apt install -y sl instead! ;)

@rl_dane
Totally forgot about sl πŸ˜€

@jhx

It's such a lovely, pure thing in such a dystopian time, man. XD

I remember trying it 26 years ago and being amazed. :D

@rl_dane
True that! πŸ˜€
It for sure brings out a smile at the very least πŸ™‚
@rl_dane I think SUSE Linux had that one in the late 90s, definitely a nice one :-)
(and in that case, it was also a transition aid for people coming from the DOS/Windows world where that always works)

@patrick

Oh, that's right, I remember wondering, "Why isn't there an md?!?"

I also used to have aliases that made fun of my typos, like

alias flaptak='echo "flaptak?!? lol!!!"; sleep 1; flatpak'

;)

@rl_dane My personal most used is
alias please=sudo !!
basically, if you run a command and forget to sudo, you can say please to get the computer to do it.

@brad

I've seen that, but never used it myself.

My ex-infosec background makes it such that I'm always quite aware of when I do and don't want/need to use root privileges. ;)

@rl_dane Ha, I did that 30 years ago, at least.
@rl_dane I don't make aliases of this kind (typo crutch) because I feel they reinforce poor behavior when I'd rather push myself to learn to type the right things. Aliases for long and complicated shit are great though! I have many many of those.

@dinofp

Yeah, have the same rule, for which this is a rare exception. ;)

I do have ll, though. Never apologizing for that one. ;)

@rl_dane If you use fish, check out abbreviations. They are just soooo cool!
@rl_dane I enjoy just .. or ../... as an example.

@adamsdesk

That can also be done as a bash alias, but for some reason, I've never felt the need to.

Maybe if cd had been changedir all along, or something. XD

I think I commented elsewhere on this thread being surprised that unix's mkdir wasn't md like in DOS.

I never aliased that, but I do have a very useful alias called mcd (actually, a function):

function mcd { #mkdir & cd [[ $1 ]] && mkdir -p "$1" && cd "$1" }
@rl_dane Yeah it's funny how commands came to be. Very nice.

@rl_dane I swear half my aliases are just typo corrections. Just a few:

sl=ls
pdw=pwd
ehco=echo

It's even to the point where I had to make a custom function to correct, for example, `gi tcommit` to `git commit` (I make that mistake alllllll the time).

@christmastree

You should do what I did to correct my mistakes: I made aliases/functions that would print out a mocking message, like "Flaptak?!? lol!!," wait a second or half second, and then run the right command (flatpak)

That actually helped correct my typing. ;)

@rl_dane I used to have one for "gits tatus" that would pretend to be an error. Something about "What's tatus? Possible options are --mash-them --boil-them --stick-them-in=stew"