pavement

Bash, fixing delete key behavior

From FreeBSDwiki
Revision as of 21:05, 9 April 2007 by Ivko (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

DEL key in bash sometimes doesn't work. Here is how to fix it:

  • in /etc/profile add this line:
export INPUTRC=/etc/inputrc


  • create /etc/inputrc and add following lines
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

Should work after you login next time.





[[Category:Configuring FreeBSD]]

Personal tools