Sat
31
Mar '07
|
by Frank Spychalski filed under Computer
|
I started reading “Learning the bash Shell” again because I suck at shell scripting. But before I reached the shell scripting part, I was playing around with bind because I wanted to move a few of the Esc-… key bindings to more ergonomic combinations. While looking for examples I found exactly what I was looking for on a site by Petar Marinov:
# ctrl+left/right arrows:
bind '"\e\x5b\x31\x3b\x35\x44"':backward-word
bind '"\e\x5b\x31\x3b\x35\x43"':forward-word
# alt+backspace:
bind '"\xff"':backward-kill-word
# alt+'.':
bind '"\xae"':yank-last-arg
Ok, and now back to shell scripting
Related entries:
[...] A few new useful bash keybindings [...]