FreeBSD + full keboard support for bash

It’s preatty anoing when your bash console is giving you ~~~~~ for home, end or del key.

Easy way to get it work is set an environment variables by adding to your /etc/profile file line :

export INPUTRC=/usr/local/etc/inputrc

and fill this file with content

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

don’t forget to chmod  the file  🙂
To see effects relogin or just put


into console

Bookmark the permalink.

Comments are closed.