summaryrefslogtreecommitdiffstats
path: root/gnu/lib/libreadline/examples/Inputrc
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/lib/libreadline/examples/Inputrc')
-rw-r--r--gnu/lib/libreadline/examples/Inputrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/lib/libreadline/examples/Inputrc b/gnu/lib/libreadline/examples/Inputrc
index db9510d..5b71bd7 100644
--- a/gnu/lib/libreadline/examples/Inputrc
+++ b/gnu/lib/libreadline/examples/Inputrc
@@ -19,6 +19,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 +59,7 @@ $endif
$if Ftp
"\C-xg": "get \M-?"
"\C-xt": "put \M-?"
+"\M-.": yank-last-arg
$endif
" ": self-insert
OpenPOWER on IntegriCloud