Assign keys to commands in Terminal?
Posted
by
NES
on Ask Ubuntu
See other posts from Ask Ubuntu
or by NES
Published on 2011-01-04T12:54:18Z
Indexed on
2011/01/04
12:58 UTC
Read the original article
Hit count: 308
shortcut-keys
Is there a solution to assign special key combinations to words in terminal use. For example the less command is very usefull and i use i a lot to pipe the output of another process through it.
The idea would be to set up special key combinations that are only active in terminal use assigned to write different commands? So pressing CTRL + l in terminal window could write
| less
or CTRL + G could stand for
| grep
Note: i just mean adding the letters to commandline not execute the finally. A similar way what's tabcompletion but more specific.
© Ask Ubuntu or respective owner