From de30a7eb4ed4f7d4207013bf3392b0bd495a73e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Tue, 5 Dec 2000 18:16:28 +0000 Subject: [PATCH] fixed ZSH prompt and enabled history feature Changed files: etc/profile -> 1.14 --- etc/profile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.44.0