aboutsummaryrefslogtreecommitdiff
path: root/readline
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-04-23 16:05:05 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-04-23 16:05:05 +1200
commit2bcf96b9404ae35a6a7fccb0a2595254df58ea1c (patch)
treeb27a593297d8b783a5ab1de3044f48ab5a3e1a8f /readline
parentAllow specifying color for tmux (diff)
downloaddotfiles-2bcf96b9404ae35a6a7fccb0a2595254df58ea1c.tar.gz
dotfiles-2bcf96b9404ae35a6a7fccb0a2595254df58ea1c.zip
Shell word navigation in .inputrc
Diffstat (limited to 'readline')
-rw-r--r--readline/inputrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/readline/inputrc b/readline/inputrc
index 6a9870a2..7d86b255 100644
--- a/readline/inputrc
+++ b/readline/inputrc
@@ -50,4 +50,10 @@ $if Bash
"\es": "\C-a(set -x ; \C-e)\C-b"
# Alt-T (for todo) to edit my to-do file with td(1)
"\et": "\C-atd\C-j\C-y"
+ # Ctrl-Alt-W to delete a previous shell-quoted word
+ "\e\C-w": shell-backward-kill-word
+ # Ctrl-Alt-B to move backward a shell-quoted word
+ "\e\C-f": shell-forward-word
+ # Ctrl-Alt-F to move forward a shell-quoted word
+ "\e\C-b": shell-backward-word
$endif