Sat
31
Mar '07
A few new useful bash keybindings
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:


One Response to “A few new useful bash keybindings”

  1. 1

    [...] A few new useful bash keybindings [...]

    » Bash shell goodies « amazing development (March 31st, 2007 at 17:04)

Any comments? Or questions? Just leave a Reply: