From: Simon Ruderich Date: Fri, 3 Oct 2008 16:32:37 +0000 (+0200) Subject: Display the job count in zsh's prompt. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=9cf091bb3e53c11fea5ba956d724fd8806cd2a0d;p=config%2Fdotfiles.git Display the job count in zsh's prompt. --- diff --git a/zsh/rc b/zsh/rc index 52318bc..618e7d1 100644 --- a/zsh/rc +++ b/zsh/rc @@ -36,12 +36,13 @@ setopt correct autoload -U colors && colors # Set the default prompt. The current host and working directory is displayed, -# the exit code of the last command if it wasn't 0 and a + if this shell is -# running inside another shell. +# the exit code of the last command if it wasn't 0, the number of running jobs +# if not 0 and a + if this shell is running inside another shell. # The prompt is in green and blue to make easily detectable, the error exit -# code in red and bold. +# code in red and bold and the job count in yellow. PROMPT="%{${fg[green]}%}%B%m%b%{${fg[default]}%}:\ -%{${fg[blue]}%}%B%~%b%{${fg[default]}%} %(2L.+.)%# \ +%{${fg[blue]}%}%B%~%b%{${fg[default]}%} \ +%(1j.%{${fg[yellow]}%}%j%{${fg[default]}%}.)%(2L.+.)%# \ %(?..(%{${fg[red]}%}%B%?%b%{${fg[default]}%}%) )" # Use new completion system.