X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/40421d0b105e6e9ce9cbdff368aab4989ac6f184..11fc748d4ce1939022c23633444c3ccf3ee59610:/dot/inputrc?ds=sidebyside diff --git a/dot/inputrc b/dot/inputrc index 1a8e8e3..9313006 100644 --- a/dot/inputrc +++ b/dot/inputrc @@ -18,6 +18,7 @@ set enable-bracketed-paste on "\e\e[C": forward-word "\e\e[D": backward-word "\e ": "\e\\ " +"\e\C-w": kill-region ## Because the default bindings are just too weird. "\en": history-search-forward @@ -25,8 +26,9 @@ set enable-bracketed-paste on "\C-u": kill-whole-line ## Better cursor motion. +$if Bash "\e\C-b": shell-backward-word "\e\C-d": shell-kill-word "\e\C-f": shell-forward-word "\C-w": shell-backward-kill-word -"\e\C-w": kill-region +$endif