Bash, fixing delete key behavior

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
m (Reverted edits by DavidYoung (talk) to last revision by Jimbo)
(4 intermediate revisions by 3 users not shown)
Line 30: Line 30:
'''<nowiki>[[Category:Configuring FreeBSD]]</nowiki>'''
[[Category:Configuring FreeBSD]]
[[Category:Common Tasks]]

Latest revision as of 17:25, 25 August 2012

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.

Personal tools