aboutsummaryrefslogtreecommitdiff
path: root/readline
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-16 10:13:33 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-16 10:13:33 +1200
commit25b513d7c932bc052d91863a8743f1a3124097d2 (patch)
treeb39124dfea01623d1ebee348672a2c81789d7338 /readline
parentAllow loading gzip plugin (diff)
downloaddotfiles-25b513d7c932bc052d91863a8743f1a3124097d2.tar.gz
dotfiles-25b513d7c932bc052d91863a8743f1a3124097d2.zip
Bind Alt-' in readline to insert '\'' for shell
Diffstat (limited to 'readline')
-rw-r--r--readline/inputrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/readline/inputrc b/readline/inputrc
index 7e4b500d..c11d8fe7 100644
--- a/readline/inputrc
+++ b/readline/inputrc
@@ -77,6 +77,9 @@ $if Bash
# Alt-M (for muxer) to run tm(1df)
"\em": "\C-utm\C-j\C-y"
+ # Alt-' for escaped single-quote: 'don'\''t fear the reaper'
+ "\e'": "'\\''"
+
# Ctrl-Alt-B to move backward a shell-quoted word
"\e\C-b": shell-backward-word
# Ctrl-Alt-F to move forward a shell-quoted word