]> git.pld-linux.org Git - projects/setup.git/commitdiff
- some fixes
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 1 Jun 2000 13:39:12 +0000 (13:39 +0000)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 1 Jun 2000 13:39:12 +0000 (13:39 +0000)
- and more beautyfing ;)

Changed files:
    etc/profile -> 1.10

etc/profile

index 279356e7b1f7a41e71bae61475bca18806c4133d..f66a745cd480d786a184461c626d680670d865e0 100644 (file)
@@ -30,27 +30,28 @@ fi
 
 SH="${0#\-}"
 if [ "$SH" = "sh" ]; then
-       if [ ! -n KSH_VERSION ]; then
+       if [ -n "$KSH_VERSION" ]; then
                SH=ksh
-       elif [ ! -n BASH_VERSION ]; then
+       elif [ -n "$BASH_VERSION" ]; then
                SH=bash
        fi
 fi
 
 case "$SH" in
   bash)
-       PS1="\u@\h \W\\$ "
+       PS1="[\u@\h \W]\\$ "
        ;;
   ksh|pdksh)
-       PS1='[${LOGNAME-$USER}@${HOSTNAME}`
-               if [ "$PWD" = "${PWD##$HOME}" ]; then
+       PS1='[${LOGNAME-$USER}@${HOSTNAME} `
+               if [ "$PWD" = "/${PWD##*/}" ]; then
                        echo $PWD;
                 else
-                        echo '~'${PWD##$HOME};
-       fi`] '$PS1
+                        echo ${PWD##*/};
+       fi`]'$PS1
        PS2='> '
        set -o emacs
        bind '^I'=complete
+       bind '^[^I'=complete-list
        #
        # Setup some of the most basic editing functions
        # to work properly under different termnal emulators.
@@ -67,7 +68,7 @@ case "$SH" in
        esac
        ;;
   zsh)
-       PS1="%m:%~%# "
+       PS1="[%m:%~%]# "
        ;;
 esac
 
This page took 0.035977 seconds and 4 git commands to generate.