Skip to content

Commit

Permalink
zshrc: New prompt: Enable one of the prompts
Browse files Browse the repository at this point in the history
Mimic the old way of choosing the "right" prompt.

Signed-off-by: Frank Terbeck <ft@grml.org>
  • Loading branch information
ft committed Mar 5, 2013
1 parent 1daee92 commit a94f602
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion etc/zsh/zshrc
Expand Up @@ -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
Expand Down

0 comments on commit a94f602

Please sign in to comment.