summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAssaf Gordon <assafgordon@gmail.com>2016-02-22 22:31:45 (GMT)
committerAssaf Gordon <assafgordon@gmail.com>2016-02-22 22:31:45 (GMT)
commit0ea9f2c1f87475a2c31f3a2820ac607911308e61 (patch)
tree29b317d31a6c966a99a0e2e16819e0e2ae7833ed
parentd5f96962554d061440052f8f1647fedd1590d388 (diff)
downloaddot-files-0ea9f2c1f87475a2c31f3a2820ac607911308e61.zip
dot-files-0ea9f2c1f87475a2c31f3a2820ac607911308e61.tar.gz
dot-files-0ea9f2c1f87475a2c31f3a2820ac607911308e61.tar.bz2
inputrc-unix: new file
-rw-r--r--inputrc-unix23
1 files changed, 23 insertions, 0 deletions
diff --git a/inputrc-unix b/inputrc-unix
new file mode 100644
index 0000000..0d430be
--- /dev/null
+++ b/inputrc-unix
@@ -0,0 +1,23 @@
+# Map ALT-W to copy region (similar to emacs)
+# To mark a region, use 'set-mark' (CTRL-Space or CTRL-@)
+# To paste/yank, use CTRL-Y
+"\ew":copy-region-as-kill
+
+# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
+"\e[1;5C": forward-word
+"\e[1;5D": backward-word
+"\e[5C": forward-word
+"\e[5D": backward-word
+"\e\e[C": forward-word
+"\e\e[D": backward-word
+
+
+# Home/End
+"\e[1~": beginning-of-line
+"\e[4~": end-of-line
+"\e[7~": beginning-of-line
+"\e[8~": end-of-line
+"\eOH": beginning-of-line
+"\eOF": end-of-line
+"\e[H": beginning-of-line
+"\e[F": end-of-line