X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=b4ec1b7ba7f4f283372ce95a9d33aefdfb4bacc4;hb=a94f602777da92b43192f30f299efd49820b47cf;hp=48d07664cbfb14eb2681689dbbdc7a20979b2d80;hpb=4dc88ce5e68f7b0d311dfd0e5bbcb9035554d552;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 48d0766..b4ec1b7 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -1540,6 +1540,8 @@ if zrcautoload promptinit && promptinit 2>/dev/null ; then add-zsh-hook precmd battery fi if [[ "$TERM" == dumb ]] ; then + zstyle ":prompt:grml(|-large|-chroot):*:items:grml-chroot" pre '' + zstyle ":prompt:grml(|-large|-chroot):*:items:grml-chroot" post ' ' for i in rc user path jobs history date time shell-level; do zstyle ":prompt:grml(|-large|-chroot):*:items:$i" pre '' zstyle ":prompt:grml(|-large|-chroot):*:items:$i" post '' @@ -1550,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