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 ..'
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 ..'
No lolcat on top? ;)
..='cd ..')! Might also just be an oh-my-zsh thing but I love it!I mean, that can be done in bash with a single alias, but if you're happy with zsh, I'm happy. ;)
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 ;)"
That's living dangerously! ;)
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'
;)
alias please=sudo !!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. ;)
Yeah, have the same rule, for which this is a rare exception. ;)
I do have ll, though. Never apologizing for that one. ;)
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 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).
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. ;)