From: Simon Ruderich Date: Wed, 10 Mar 2010 23:15:08 +0000 (+0100) Subject: zsh/rc: Don't display + in prompt when running as subshell. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=bba57cf2b29e813e061cefd755abbe2021bb7c07;p=config%2Fdotfiles.git zsh/rc: Don't display + in prompt when running as subshell. This is almost useless when using a terminal emulator and I seldom create new subshells on my own. --- diff --git a/zsh/rc b/zsh/rc index 3db8353..5276361 100644 --- a/zsh/rc +++ b/zsh/rc @@ -138,7 +138,7 @@ local default="%{${fg[default]}%}" # The prompt is in green and blue to make easily detectable, the error exit # code in red and bold and the job count in yellow. PROMPT="$green%B%m%b$default:$blue%B%~%b$default \ -%(1j.$yellow%j$default.)%(2L.+.)%# \ +%(1j.$yellow%j$default.)%# \ %(?..($red%B%?%b$default%) )" # VCS_Info was added in 4.3.9 but it works in earlier versions too. So load it