FreeBSD bash Key Bindings

FreeBSD: Customize Home, Del, Insert keys for BASH shell
Creating the /etc/inputrc File
Readline and inputrc
How do I convert inputrc settings to bashrc ones?

The /etc/inputrc file deals with mapping the keyboard for specific situations. This file is the start-up file used by readline, the GNU command line editing library used by Bash, perl and most other open source programs.

# vi /etc/profile
export INPUTRC=/usr/local/etc/inputrc

# vi /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

2 thoughts on “FreeBSD bash Key Bindings

  1. Pingback: FreeBSD 10 & vim | Andreas' Blog

  2. Pingback: FreeBSD 12 on Samsung NP300E5A | Andreas' Blog

Leave a Reply

Your email address will not be published. Required fields are marked *