Thursday, September 6, 2007

navigation keys in terminal

~/.inputrc:
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\C-H": backward-kill-word
"\e[3;5~": kill-word
set bell-style none

for vi-style controls:
set editing-mode vi
set keymap vi

(see man readline, inputrc)

No comments: