Ubuntu command line fu - How not to spell "ls"
manpages.ubuntu.com
manpages.ubuntu.com
( ) (@@) ( ) (@) () @@ O @ O @ O
(@@@)
( )
(@@@@)
( )
==== ________ ___________
_D _| |_______/ \__I_I_____===__|_________|
|(_)--- | H\________/ | | =|___ ___| _________________
/ | | H | | | | ||_| |_|| _| \_____A
| | | H |__--------------------| [___] | =| |
| ________|___H__/__|_____/[][]~\_______| | -| |
|/ | |-----------I_____I [][] [] D |=======|____|________________________|_
__/ =| o |=-~~\ /~~\ /~~\ /~~\ ____Y___________|__|__________________________|_
|/-=|___|=O=====O=====O=====O |_____/~\___/ |_D__D__D_| |_D__D__D_|
\_/ \__/ \__/ \__/ \__/ \_/ \_/ \_/ \_/ \_/"The program 'sl' is currently not installed.
You can install it by typing:
sudo apt-get install sl"
What's the point if I have to know about it and explicitly install it? Kind of ruins the surprise, but I guess I can set it up for unsuspecting others...
I can set it up for unsuspecting others.
Needless to say, I quickly added `alias sl=ls` to my .alias as soon as the embarassment subsided.
BUGS
It rarely shows contents of current directory.Hypothesis: the typo "sl" is only common among left-handers.
I shall have to add my vioce to the small left-handed chorus here and say that I too have never had an issue with the "sl" typo. In fact I cannot remember a single occasion where I have made this mistake.
I've intentionally left a typo that I did just make in the above paragraph to illustrate my own tangentially related observation: The typos that tend to occur within my own typing often seem to be the kind produced by one hand not two. By which I mean the typo "vioce" rather than "voice" happened because the fingers of my right hand hit the keyboard in the wrong sequence. Where as typos involving a finger from one hand then a finger from the other (as would need to be the case with "sl" rather than "ls") tend to be less common... for me anyway.
$ sl
The program 'sl' is currently not installed. You can install it by typing:
sudo apt-get install sl
I deeply appreciate that this is the case, even though it's drastically defeating the purpose of showing something when ls is misspelled.I've never found a port I thought should have been in MacPorts not being there, `sudo port -v install [package]` always seems to work, and dependencies are automagically followed.
Looking at the website, it seems the general "improvement" is that you can edit formulas before you install; but that's exactly why I use MacPorts! I don't want to know how to install all these things, that abstraction is something I prefer. If you don't intend to do this, is Homebrew really any different?
Which means that if install Git, that's all I get. With Macports, I'll also be installing duplicate versions of at least curl, openssh, and rsync, as per http://help.github.com/mac-git-installation/
Homebrew tries to take the high ground here, but it's just naivety. They'll wind up installing "duplicate" versions of software too -- in fact, they already are doing so. The short-cycle of Leopard -> Snow Leopard won't be happening again soon, and the only alternative to adding "duplicate" software to your dependency tree is letting software go stale (for example: python 2.7 vs SL's 2.6.1).
It's easy to say that the 10 years of knowledge that both MacPorts and Fink have about the platform is "stupid" when you haven't had the experience of maintaining a working packaging/port system through a few OS X release cycles, and aren't familiar with the problem space or Apple's policies.
You can edit the MacPorts portfiles too, if you want to:
sudo port edit <portname>
I don't really understand why people are advocating Homebrew. The only real advantage seems to be the smaller dependency tree achieved by relying on Apple's shipped components, but that's a short-term band-aid that isn't going to last.Responding to invalid input by actively mocking the user is about the worst decision you can make for discoverability. It's this kind of user interface thinking that can lead to a toolchain being rejected regardless of how powerful or useful the tools could be.
That hopefully helps.
zsh: correct 'sl' to 'ls' [nyae]? n
And only then do I get my choo-choo train. :)<3 zsh :)
A good debian/ ubuntu ascii art joke is the "apt-get moo"
sl is a lot of fun when you first stumble across it...
However, I can't kill it will ctrl-c even when I set the -e flag. Is that supposed to be part of the joke?