]> git.pld-linux.org Git - projects/setup.git/commitdiff
- There's no need to bind 'complete' function for ksh
authoradgor <adgor@pld-linux.org>
Tue, 30 Mar 2004 22:24:24 +0000 (22:24 +0000)
committeradgor <adgor@pld-linux.org>
Tue, 30 Mar 2004 22:24:24 +0000 (22:24 +0000)
- rxvt sends same home/end sequences as linux
- Fixed 'beginning/end-of-line' bindings for linux|rxvt terms (ksh)
  - TODO: they still do not work properly for these terms
- Typo

Changed files:
    etc/profile -> 1.34

etc/profile

index 592ee89a4391ff20dade4c6a90cf12c226f83810..dfea3cfca87779820b423c3f35f12ef1e8b54368 100644 (file)
@@ -78,20 +78,19 @@ case "$SH" in
        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
        ;;
@@ -115,10 +114,10 @@ case "$SH" in
        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
This page took 0.229919 seconds and 4 git commands to generate.