In a terminal window, hit ESC twice to perform an ls -F. Saves typing a few characters.
[Editor's note: Wow, it works! Is this a bug or a feature??]
|
|
|
A very silly hint, but one I haven't seen anywhere else and which might prove useful to someone...
In a terminal window, hit ESC twice to perform an ls -F. Saves typing a few characters. [Editor's note: Wow, it works! Is this a bug or a feature??]
•
[2,489 views]
Hint Options
Only works for csh/tcsh
This tip only works in csh and tcsh. It doesn't work in bash (my default), zsh, or sh. So this is probably more of a csh bug|feature than something related to the Terminal application.
One keystroke less...
You get the same list hitting <tab> just once...
Use alias to make your own shortcuts
Spend some time to set up your alias and working in the Terminal will be much more pleasent. I use Bash and here are some of the alias I have put in my .bashrc.
;-)
Any sufficiently advanced bug is indistinguishable from a feature.
It's a feature!
All you're doing is filename completion in the current directory without having entered an intial part of the filename. Useful - certainly. Bug - never!!
I get this...
In bash shell I get this response:
Display all 978 possibilities? (y or n) responding "y" returns a plain old vanilla "ls" plus what looks like every possible command doable in the Terminal, all output in two columns.
bindkey
No, double-escape is not the same as the "ls -F" command.
The shells csh / tcsh let you bind key combinations to built-in shell commands. The double-escape sequence is bound to "complete-word" by default. This is a context-sensitive command. On a blank line you'll get something like the output of "ls -F" and if you type the following: chmod esc-esc You'll get a list of modes you can use: a g o u Type "bindkey" by itself to see the complete list of bound keys. Read the tcsh man-pages for more information about commands that can be bound to keys.
Another one in csh/tcsh
Maybe everybody knows, but... I'll tell anyway:
Hit CONTROL-X and then CONTROL-D and you'll see the listing of all commands possible in (Darwin || csh/tcsh || any shell ?)
Repeat yourself
Try this one:
esc + backspc
True, it is not the same as typing ls -F, but rather autocompletions without any "start". Something else that might be useful is if you type esc, then backspc you delete the whole line. Ofcource you could type Ctrl-C instead to get a new line, but someone might like this. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.22 seconds |
|