I am trying to make changes to the /etc/inputrc file ..... ( this file basically handles keyboard mapping for specific situations. see http://tldp.org/LDP/lfs/LFS-BOOK-6.1.1-HTML/chapter07/inputrc.html ) but not much info is given on how to edit the file as per one likes.
Suppose i want the keyboard key "ctl+e" to run the command ls -la .... how do i do this in /etc/inputrc file.
thanks .... for helping me out here :-)
On Feb 4, 2008 6:31 PM, Agnello George agnello.dsouza@gmail.com wrote:
I am trying to make changes to the /etc/inputrc file ..... ( this file basically handles keyboard mapping for specific situations. see http://tldp.org/LDP/lfs/LFS-BOOK-6.1.1-HTML/chapter07/inputrc.html ) but not much info is given on how to edit the file as per one likes.
Suppose i want the keyboard key "ctl+e" to run the command ls -la .... how do i do this in /etc/inputrc file.
I didnt know about this inputrc file, until i read this mail of yours. But seemed like an intersting enough option to explore.
The real info for this is hidden in info readline. inputrc uses emacs-style notations to denote keystrokes. Check it out.
As for your requirement of mapping Ctrl+e to run the command ls -la, I added the following to my .inputrc
Control-e: "ls -la\n"
hope it helps.
On 2/4/08, Puneet Lakhina puneet.lakhina@gmail.com wrote:
On Feb 4, 2008 6:31 PM, Agnello George agnello.dsouza@gmail.com wrote:
I am trying to make changes to the /etc/inputrc file ..... ( this file basically handles keyboard mapping for specific situations. see http://tldp.org/LDP/lfs/LFS-BOOK-6.1.1-HTML/chapter07/inputrc.html ) but
not
much info is given on how to edit the file as per one likes.
Suppose i want the keyboard key "ctl+e" to run the command ls -la ....
how
do i do this in /etc/inputrc file.
I didnt know about this inputrc file, until i read this mail of yours. But seemed like an intersting enough option to explore.
The real info for this is hidden in info readline. inputrc uses emacs-style notations to denote keystrokes. Check it out.
As for your requirement of mapping Ctrl+e to run the command ls -la, I added the following to my .inputrc
Control-e: "ls -la\n"
Thanks a lot dude !!! added this to end of the file at /etc/inputrc,,,,, and it worked .