In the man page for bind it says I can make modifications to the settings by creating a ~/.inputrc. I tried that, but it doesn't seem to have any affect on the settings. Is it overridden by the /etc/inputrc? Also, is there a way to echo the key codes that I would put in such a file? For example, I want to map Ctrl+Delete to copy region as kill. How do I find out what the acceptable representation for that combination would be? STH
Am Donnerstag, 29. Januar 2004 05:36 schrieb Steven T. Hatton:
In the man page for bind it says I can make modifications to the settings by creating a ~/.inputrc. I tried that, but it doesn't seem to have any affect on the settings. Is it overridden by the /etc/inputrc?
Also, is there a way to echo the key codes that I would put in such a file? For example, I want to map Ctrl+Delete to copy region as kill. How do I find out what the acceptable representation for that combination would be?
You read the "READLINE"-Section in "man bash" ? -- Andreas
On Thursday 29 January 2004 01:53, Andreas Winkelmann wrote:
Am Donnerstag, 29. Januar 2004 05:36 schrieb Steven T. Hatton:
In the man page for bind it says I can make modifications to the settings by creating a ~/.inputrc. I tried that, but it doesn't seem to have any affect on the settings. Is it overridden by the /etc/inputrc?
Also, is there a way to echo the key codes that I would put in such a file? For example, I want to map Ctrl+Delete to copy region as kill. How do I find out what the acceptable representation for that combination would be?
You read the "READLINE"-Section in "man bash" ?
-- Andreas
As it turns out, there was a line in the /etc/profile which would switch the $INPUTRC to my ~/.inputrc, but that only happened when I logged into the KDE. The READLINE section of the bash man page doesn't address the questions I asked. Do you know where the answers can be found? STH
* Steven T. Hatton <hattons@speakeasy.net> [01-29-04 02:50]:
As it turns out, there was a line in the /etc/profile which would switch the $INPUTRC to my ~/.inputrc, but that only happened when I logged into the KDE. The READLINE section of the bash man page doesn't address the questions I asked. Do you know where the answers can be found?
/etc/profile is part of your shell (bash) configuration, not kde. It is parsed each time you log into your shell. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org
On Thu, 29 Jan 2004 18:51, Steven T. Hatton wrote:
As it turns out, there was a line in the /etc/profile which would switch the $INPUTRC to my ~/.inputrc, but that only happened when I logged into the KDE. The READLINE section of the bash man page doesn't address the questions I asked. Do you know where the answers can be found?
STH
Sorry I deleted your original question before reading it. The .inputrc (readline startup file) is covered in a book from O'Reilly called "Learning the Bash Shell" as well as other details on command line editing. The entries in .inputrc are entered as KEY: command control-t: end-of-line # Pressing CTRL-T cursor moves to end of line control-x: "Some text" # Presing CTRL-X will cause "Some text" to be entered Also look at the 'bind' command which uses similar syntax to readline. bind '"\C-t": end-of-line' Hope that helps. -- Regards, Graham Smith ---------------------------------------------------------
participants (4)
-
Andreas Winkelmann
-
Graham Smith
-
Patrick Shanahan
-
Steven T. Hatton