Release 2.33.1
[external/binutils.git] / readline / examples / Inputrc
index db9510d..a358bc4 100644 (file)
@@ -4,6 +4,22 @@
 # on which program is running, or what terminal is active.
 #
 
+#   Copyright (C) 1989-2009 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
+#
+
 # 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