]> git.pld-linux.org Git - projects/setup.git/commitdiff
- more kbd stuff for ksh93
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 21 May 2001 12:44:49 +0000 (12:44 +0000)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 21 May 2001 12:44:49 +0000 (12:44 +0000)
Changed files:
    etc/profile -> 1.20

etc/profile

index 8022a26a3403bd2f7fe7f750c5b166c4941211cd..61e83e5c9c18dbea4ce9fa7d37c18c3ffa340ef3 100644 (file)
@@ -100,7 +100,14 @@ case "$SH" in
        PS2='> '
        set -o nolog
        set -o emacs
-       trap 'case ${.sh.edchar} in  "\e[4~") .sh.edchar="\ 5" ;; "\e[1~") .sh.edchar="\ 1" ;; esac' KEYBD
+       case $TERM in
+       nxterm|xterm|xterm-color|rxvt)
+               trap 'case ${.sh.edchar} in  "\e[F") .sh.edchar="\ 5" ;; "\e[H") .sh.edchar="\ 1" ;; esac' KEYBD
+               ;;
+       linux)
+               trap 'case ${.sh.edchar} in  "\e[4~") .sh.edchar="\ 5" ;; "\e[1~") .sh.edchar="\ 1" ;; esac' KEYBD
+               ;;
+       esac
        ;;
   zsh)
        PS1='[%n@%m %~]%(!.#.%\$) '
This page took 0.138345 seconds and 4 git commands to generate.