fi
PS2='> '
set -o emacs
- bind '^I'=complete >/dev/null 2>&1
bind '^[^I'=complete-list >/dev/null 2>&1
#
# Setup some of the most basic editing functions
- # to work properly under different termnal emulators.
+ # to work properly under different terminal emulators.
#
case $TERM in
- nxterm|xterm|xterm-color|rxvt)
+ nxterm|xterm|xterm-color)
bind '^[[H'=beginning-of-line >/dev/null 2>&1
bind '^[[F'=end-of-line >/dev/null 2>&1
;;
- linux)
- bind '^[1~'=beginning-of-line >/dev/null 2>&1
- bind '^[4~'=end-of-line >/dev/null 2>&1
+ linux|rxvt)
+ bind '^[[1~'=beginning-of-line >/dev/null 2>&1
+ bind '^[[4~'=end-of-line >/dev/null 2>&1
;;
esac
;;
set -o nolog
set -o emacs
case $TERM in
- nxterm|xterm|xterm-color|rxvt)
+ nxterm|xterm|xterm-color)
trap 'case ${.sh.edchar} in "\e[F") .sh.edchar="\ 5" ;; "\e[H") .sh.edchar="\ 1" ;; esac' KEYBD
;;
- linux)
+ linux|rxvt)
trap 'case ${.sh.edchar} in "\e[4~") .sh.edchar="\ 5" ;; "\e[1~") .sh.edchar="\ 1" ;; esac' KEYBD
;;
esac