# to work properly under different terminal emulators.
#
case $TERM in
- nxterm|xterm|xterm-color)
+ nxterm|xterm*|konsole*)
bind '^[[H'=beginning-of-line >/dev/null 2>&1
bind '^[[F'=end-of-line >/dev/null 2>&1
;;
- linux|rxvt)
+ linux|rxvt*)
bind '^[[1~'=beginning-of-line >/dev/null 2>&1
bind '^[[4~'=end-of-line >/dev/null 2>&1
;;
set -o nolog
set -o emacs
case $TERM in
- nxterm|xterm|xterm-color)
+ nxterm|xterm*|konsole*)
trap 'case ${.sh.edchar} in "\e[F") .sh.edchar="\ 5" ;; "\e[H") .sh.edchar="\ 1" ;; esac' KEYBD
;;
- linux|rxvt)
+ linux|rxvt*)
trap 'case ${.sh.edchar} in "\e[4~") .sh.edchar="\ 5" ;; "\e[1~") .sh.edchar="\ 1" ;; esac' KEYBD
;;
esac