2008/7/17

自訂 bash@freebsd 的 Home, End, Insert 功能

參考自這裡

1)$ vim /etc/profile

加入這行
export INPUTRC=/usr/local/etc/inputrc

2)$ vim /usr/local/etc/inputrc
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

3)登出並登入

沒有留言:

張貼留言