From: Arkadiusz Miƛkiewicz Date: Tue, 5 Dec 2000 18:16:28 +0000 (+0000) Subject: fixed ZSH prompt and enabled history feature X-Git-Tag: setup_2_4_4~62 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=de30a7eb4ed4f7d4207013bf3392b0bd495a73e2;p=projects%2Fsetup.git fixed ZSH prompt and enabled history feature Changed files: etc/profile -> 1.14 --- diff --git a/etc/profile b/etc/profile index 27ea769..a9d2073 100644 --- a/etc/profile +++ b/etc/profile @@ -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