From c1d7811e6f1bef219bd69ece2e7cdac9a91543ce Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Tue, 5 Mar 2013 01:20:11 +0100 Subject: [PATCH] zshrc: New prompt: Support TERM == dumb Signed-off-by: Frank Terbeck --- etc/zsh/zshrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 4763779..dde417e 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -1471,6 +1471,15 @@ if zrcautoload promptinit && promptinit 2>/dev/null ; then zstyle ':prompt:grml:right:setup' items sad-smiley battery add-zsh-hook precmd battery fi + if [[ "$TERM" == dumb ]] ; then + zstyle ':prompt:grml:*:items:rc' pre '' + zstyle ':prompt:grml:*:items:user' pre '' + zstyle ':prompt:grml:*:items:path' pre '' + zstyle ':prompt:grml:*:items:rc' post '' + zstyle ':prompt:grml:*:items:user' post '' + zstyle ':prompt:grml:*:items:path' post ' ' + zstyle ':prompt:grml:right:setup' use-rprompt false + fi else print 'Notice: no promptinit available :(' fi -- 2.1.4