From a94f602777da92b43192f30f299efd49820b47cf Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Tue, 5 Mar 2013 14:23:11 +0100 Subject: [PATCH] zshrc: New prompt: Enable one of the prompts Mimic the old way of choosing the "right" prompt. Signed-off-by: Frank Terbeck --- etc/zsh/zshrc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 5152f34..b4ec1b7 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -1552,7 +1552,14 @@ if zrcautoload promptinit && promptinit 2>/dev/null ; then zstyle ':prompt:grml(|-large|-chroot):*:items:user' pre '%F{red}' fi - prompt grml + # Finally enable one of the prompts. + if [[ -n $GRML_CHROOT ]]; then + prompt grml-chroot + elif [[ $GRMLPROMPT -gt 0 ]]; then + prompt grml-large + else + prompt grml + fi else print 'Notice: no promptinit available :(' fi -- 2.1.4