aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-25 13:15:47 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-25 13:15:47 +1200
commitd1688ecb9c34f52e616376e925645c9d9782e8b8 (patch)
treed5fc623ef614c7f15cab1c66941f8cabb2bba4d5
parentAdd xyzzy(6) (diff)
downloaddotfiles-d1688ecb9c34f52e616376e925645c9d9782e8b8.tar.gz
dotfiles-d1688ecb9c34f52e616376e925645c9d9782e8b8.zip
Fix up Bash/readline word-killing behaviour
<https://github.com/izabera/libash/blob/9e709a56a148b4311792cc66cd21b61a73434573/extras/sample_inputrc#L44-L48>
-rw-r--r--readline/inputrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/readline/inputrc b/readline/inputrc
index bc6c2aad..f8b4da42 100644
--- a/readline/inputrc
+++ b/readline/inputrc
@@ -1,6 +1,9 @@
# Never ring any sort of bell during line reading
set bell-style none
+# Let readline do stuff like word killing, not stty(1)
+set bind-tty-special-chars off
+
# Ignore case when matching and completing paths
set completion-ignore-case On
@@ -28,6 +31,10 @@ set show-all-if-ambiguous On
# Don't re-complete already completed text in the middle of a word
set skip-completed-text On
+# Killing words should stop at /
+# <https://www.youtube.com/watch?v=VCiRpM_rbF0>
+"\C-w": backward-kill-word
+
# Bash macros
$if Bash