Probably an unpopular opinion, but I find aliases and extensive dotfiles counterproductive.<p>It's better to learn and remember the exact commands. If you find yourself typing the same long command over and over again, the task should probably be automated or scripted as part of a separate pipeline.<p>Assuming you are successful with aliasing and don't accidentally do something unexpected and catastrophic to your system, the moment you login to another system you will be lost and unable to remember any of the original and core commands.
I always liked the story about the guy who aliased emacs to be 'em'. Until one day he accidentally typed an 'r' instead of an 'e'. It turns out aliases can cost a lot more time than they can save!
I like to add "install <a href="https://github.com/mtoyoda/sl"" rel="nofollow">https://github.com/mtoyoda/sl"</a> to my companies "Getting started" documentation to prank new hires. Great fun!
I once installed sl on a server. Completely forgot I put it there. It laid there dormant for MONTHS without anyone tripping over it. Then....it happened.<p>"What the...why is my screen blac--is that a train-AW DAMMIT".<p>That person was me. The guy who installed the damn thing.<p>The progression from confusion, to curiosity, to realization that I had in fact...just played myself was kind of amusing in the moment.
No no no. There is only one 'sl'.<p><a href="https://asciinema.org/a/172723" rel="nofollow">https://asciinema.org/a/172723</a>
Interesting.<p>Faced with the choice of <i>punishing</i> myself for making a mistake vs. <i>adapting my environment</i> to accommodate me, I'll always choose the latter.<p>(Plus, since you use `ls` so frequently, just make `l` an alias of it, especially if you have difficulty typing "ls"! Using a computer doesn't have to be some weird, punishing, bondage and discipline experience.)
Not to be confounded with the other project of the same name (and with the same purpose) <a href="https://github.com/mtoyoda/sl" rel="nofollow">https://github.com/mtoyoda/sl</a>
a beautiful web page, and its only CSS is this:<p><pre><code> body {
max-width: 50em;
margin: auto;
padding: 1em;
line-height: 1.5em;
}
pre {
overflow-x: auto;
}</code></pre>
Maybe i'm just weird but I can't recall ever making this typo, I find myself making letter-swap typos of words/commands with letters on the same hand often enough but that's not quite so easy with ls.
I don't want to sound high and mighty or anything, but I've never mistyped 'ls'. I occasionally mistype other short binaries/commands, but typically anything more than ~4 characters has me hitting tab, and that usually completes uniquely and (obviously) correctly.
This should go the whole hog: <a href="https://ubuntuforums.org/archive/index.php/t-2078323.html" rel="nofollow">https://ubuntuforums.org/archive/index.php/t-2078323.html</a>
For some reason I don't get ls wrong (right handed so maybe I reliably hit the l first) but I've had the following in my .alias for years<p><pre><code> # some common typos
alias grpe grep
alias gpre grep
alias mroe more
alias mreo more
alias rmeo more</code></pre>
This didn't work on Mac OS due to "wc -L" so I whipped up a python version.<p><a href="https://gist.github.com/richardkiss/4fba0c6bd27eb39a9eb56074dd0f2ba4" rel="nofollow">https://gist.github.com/richardkiss/4fba0c6bd27eb39a9eb56074...</a>
Long ago there was a ms dos. program called “rude dos” that if installed would replace the all commands with versions that randomly and rarely would refuse to work with various rude messages. I always ran it before letting my little brother use my computer :).
In similar vein: express your inner rage while terminating offending processes.<p><a href="https://github.com/robotlolita/fuck-you" rel="nofollow">https://github.com/robotlolita/fuck-you</a>