Sl: a steam locomotive in your terminal(aasen.in) |
Sl: a steam locomotive in your terminal(aasen.in) |
I very quickly learned to alias sl=ls in my shell rc, and it's still in there to this day, just in case...
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614158
Also, for those that love their cars "pre-tuned by german engineers", there is `gti`:
Newbie: "What does sl do?"
Veteran: (perfectly straight face) "It trains you."
Just thinking aloud here: ls stands for 'list'.... so sl stands for 'tsil'.... which is a model of a train? No, that's not it.
I think there's a missing part to this joke.
[edit] Just stepped away from my desk and took two steps and figured it out: sl = steam locomotive
Also, brew seems to have added a beer mug emoji to the terminal output when it finishes installing something since the last time I installed anything. I didn't know the terminal (Actually iTerm 2 in this case) even supported that. Neat!
Typing dc instead of cd, though is still very common. And dc just mockingly tells me: "will not attempt to process directory."
(I now have `no` aliased to ls. Maybe I should alias `on` to sl.)
> The following code changes the default behaviour of ls from listing
> files to turning your terminal into an unstoppable steam locomotive.
> The only way to end it is closing the terminal, so use this with caution.
erm, that's easily stopped: [ctrl]+z
$ pkill -9 sl while true; do echo "stuff"; done
for example. zsh: suspended while true; do sl; done
?if you add arguments to sl like -l or -a you get a different locomotive or other effects!
Also, the man page is worth a look -- http://manpages.ubuntu.com/manpages/precise/man6/sl.6.html
[ skade sl ] ls -la *
-rw-r--r-- 1 skade staff 331 Jul 22 1998 Makefile
-rw-r--r-- 1 skade staff 417 Jul 22 1998 README
-rw-r--r-- 1 skade staff 689 Jan 18 1994 sl.1
-rw-r--r-- 1 skade staff 7.0K Jul 22 1998 sl.c
-rw-r--r-- 1 skade staff 4.1K Jan 18 1994 sl.h
-rw-r--r-- 1 skade staff 980 Jan 18 1994 sl.txt
So, it is almost 20 years old.But, clearly, it should run 'ls' after doing its choo choo?
Optimizing for the long term is also plausible. "Don't reward me for making mistakes (even if you also punish me) because it'll dilute my muscle-memory training, and I'll be more likely to make mistakes in the future."
Neither of these is inherently more correct than the other. The long term has more uncertainty, but greater potential rewards. We just have to make a judgment call.
I tend to favor the long-term approach for sl. I can't easily quantify how valuable my stricter muscle-memory training will be, but I can imagine the possibility of a significant upside if I actually become a more precise typer. Also, the worst-case downside just isn't that bad -- retyping ls just isn't that hard.
Is this even a good example for using html marquee?
This may actually make me misspell git even more.
Got Milk?, Displays Got Milk? Advert. Boring
GOThic, Changes terminal font to Gothic?
GoT, Game of Thrones, Decapitates user?, Automatically fires up BitTorrent client and grabs latest episode? Plays ASCII art GoT episode? Cat's all of GRRM's GoT novels into your terminal? (That'll teach you).
But it looks like you're right. I just tried `while true; do ( echo hi; sleep 1; echo bye; ); done` and ^Z does stop the cycle.
With zsh when I resume the execution it continues looping. However with bash it resumes for only one more iteration.