On Feb 4, 2008 6:31 PM, Agnello George <[EMAIL PROTECTED]> 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.

-- 
Puneet
http://sahyog.blogspot.com/
Latest Post: Tutorial on SVN setup and usage
-- 
http://mm.glug-bom.org/mailman/listinfo/linuxers

Reply via email to