23 July 2012

FreeBSD: fix home/end keys in terminal

1) Open default profile file:
# vi /etc/profile
2) Add the following line:
export INPUTRC=/usr/local/etc/inputrc
3) Close and save the file
4) Open the file /usr/local/etc/inputrc and append following config data:
set meta-flag on
set input-meta on
set convert-meta off
set output-meta on
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5~": beginning-of-history
"\e[6~": end-of-history
"\e[3~": delete-char
"\e[2~": quoted-insert
"\e[5C": forward-word
"\e[5D": backward-word
5) Close and save the file

No comments:

Post a Comment