Put this in /etc/bash.bashrc to enable for all logins:
Code:
case $TERM in
xterm*)
if [ "$COLORTERM" ]; then
bind '"\C-h": backward-delete-char'
bind '"\e[3~": delete-char'
bind '"\e[7~": beginning-of-line'
bind '"\e[8~": end-of-line'
else
bind '"\e[1~": beginning-of-line'
bind '"\e[3~": delete-char'
bind '"\e[4~": end-of-line'
bind '"\177": backward-delete-char'
fi
;;
cons*)
export COLORTERM=$TERM
bind '"\C-?": delete-char' # DEL
bind '"\C-h": backward-delete-char' # BACKSPACE
bind '"\e[H": beginning-of-line' # HOME
bind '"\e[F": end-of-line' # END
esac
You'll have to re-login for it to take effect.