]> git.pld-linux.org Git - projects/setup.git/commitdiff
fixed ZSH prompt and enabled history feature
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 5 Dec 2000 18:16:28 +0000 (18:16 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 5 Dec 2000 18:16:28 +0000 (18:16 +0000)
Changed files:
    etc/profile -> 1.14

etc/profile

index 27ea7697d62e7498d94b5c0d1f52abd7dacd73a7..a9d2073958a3e8f0b8c5917276bb7753e4a3fc5d 100644 (file)
@@ -33,6 +33,8 @@ SH="${0#\-}"
 if [ "$SH" = "sh" ]; then
        if [ -n "$KSH_VERSION" ]; then
                SH=ksh
+       elif [ -n "$ZSH_VERSION" ]; then
+               SH=zsh
        elif [ -n "$BASH_VERSION" ]; then
                SH=bash
        fi
@@ -78,7 +80,8 @@ case "$SH" in
        esac
        ;;
   zsh)
-       PS1="[%m:%~%]# "
+       PS1='[%n@%m %~]%(!.#.%\$) '
+       bindkey -e >/dev/null 2>&1
        ;;
 esac
 
This page took 0.100779 seconds and 4 git commands to generate.