2003-12-11 Michael Chastain <mec.gnu@mindspring.com>
[deliverable/binutils-gdb.git] / readline / examples / Inputrc
index db9510dd7b6447378fc247644c52cacc2e1af4c6..d7fdb42efaae44612c512201ebe97021d2f627ae 100644 (file)
@@ -4,6 +4,22 @@
 # on which program is running, or what terminal is active.
 #
 
+# Copyright (C) 1989-2002 Free Software Foundation, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
+
 # In all programs, all terminals, make sure this is bound.
 "\C-x\C-r": re-read-init-file
 
@@ -19,6 +35,12 @@ $if TERM=xterm
 "\e[C": forward-char
 "\e[D": backward-char
 
+# alternate arrow key prefix
+"\eOA": previous-history
+"\eOB": next-history
+"\eOC": forward-char
+"\eOD": backward-char
+
 # Under Xterm in Bash, we bind local Function keys to do something useful.
 $if Bash
 "\e[11~": "Function Key 1"
@@ -53,6 +75,7 @@ $endif
 $if Ftp
 "\C-xg": "get \M-?"
 "\C-xt": "put \M-?"
+"\M-.": yank-last-arg
 $endif
 
 " ": self-insert
This page took 0.024031 seconds and 4 git commands to generate.