How to define TAB key at terminal...
Hi...
I want to define TAB key at terminal. When i press TAB key i want all files shows like "ls -ltrh -color" how can i do it? Thanks. |
Quote:
how can i trap TAB key ??? |
Quote:
|
Are we taking about a terminal emulator running in a GUI, or a terminal without a GUI? And if it's a terminal emulator, we need to know which GUI you have: Gnome/Metacity, ICE, etc?
|
Perhaps you want *?
|
Quote:
You are aware that this will cripple bash? Cheers, Tink |
Quote:
|
I remember going over how to set TAB spots in a terminal in 'The Unix Book.' I will post how as soon as I get home from work.
|
Here's an analogy:
OP:I need to attach two planks of wood without using any glue. Can you suggest another adhesive? People in this thread: <Debate on tree sap, etc.> So, my "hammer and nails" solution is this, * |
Quote:
While this has an oversized asterisk it has no point. No, I don't mean periods that finish your sentences. You're trying to point out that others aren't helping while not helping yourself? Cheers, Tink |
It is not a good idea to re-assign TAB, because sooner or later you'll want to use it. There are other keys (like PAUSE) that can be sacrificed, and you can use combinations with Super (aka the Windows key).
With the gnome terminal, consider using keyboard shortcuts created in metacity or with xbindkeys. DoME69: What you want is alias. Insert in ~/.bashrc the line alias ll='ls -ltrh -color' You can then enter 'll' and get the result you want. |
Quote:
i don't want to use alias what i want is expand the possibility of TAB. What i want is that key use color at terminal. |
Tab is already used by Bash for tab completion. The alias method is the best to use. Not sure why you would want to cripple it from using tab completion....
|
All times are GMT -5. The time now is 02:11 PM. |