aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editors/inputrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/editors/inputrc b/editors/inputrc
index 4e436dab..3acc83a2 100644
--- a/editors/inputrc
+++ b/editors/inputrc
@@ -1,6 +1,12 @@
# BQN keybindings for Readline configuration file .inputrc
# Enables BQN combinations in bash and rlwrap (used by dzaima/BQN REPL)
+# Readline bindings are recursive, so use this trick to turn double
+# backslash into an actual backslash character.
+# Assuming ctrl-x esc isn't bound, the part after \\ does nothing,
+# except keep Readline from waiting for a backslash combination.
+"\\\\" "\\"
+
"\\`" "˜"
"\\1" "˘"
"\\2" "¨"