From 9cf091bb3e53c11fea5ba956d724fd8806cd2a0d Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 3 Oct 2008 18:32:37 +0200 Subject: [PATCH] Display the job count in zsh's prompt. --- zsh/rc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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. -- 2.44.1