]> git.pld-linux.org Git - projects/setup.git/commitdiff
ksh93 support
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 13 May 2001 13:48:20 +0000 (13:48 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 13 May 2001 13:48:20 +0000 (13:48 +0000)
Changed files:
    etc/profile -> 1.17

etc/profile

index 3e9341246252dfb183d2cd3aecea7560746964d5..389f71ab41c624fff69e091b652c3bc5cafb6e21 100644 (file)
@@ -81,6 +81,25 @@ case "$SH" in
                ;;
        esac
        ;;
+  ksh93)
+       if [ `id -u` -eq 0 ]; then
+               PS1='[${LOGNAME-$USER}@${HOSTNAME} `
+                       if [ "$PWD" = "/${PWD##*/}" ]; then
+                               echo $PWD;
+                       else
+                               echo ${PWD##*/};
+               fi`]# '
+       else
+               PS1='[${LOGNAME-$USER}@${HOSTNAME} `
+                       if [ "$PWD" = "/${PWD##*/}" ]; then
+                               echo $PWD;
+                       else
+                               echo ${PWD##*/};
+               fi`]$ '
+       fi
+       PS2='> '
+       set -o emacs
+       ;;
   zsh)
        PS1='[%n@%m %~]%(!.#.%\$) '
 
This page took 0.030043 seconds and 4 git commands to generate.