X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Frc;h=618e7d1d9d9a2c72a0bb44e7b1272ca261f5c35e;hb=9cf091bb3e53c11fea5ba956d724fd8806cd2a0d;hp=52318bc88e50e3c2c72864c4042805bed1ca4a01;hpb=c9bdb37b7b519af9ffb5f79a0dd1f7cf5d1097be;p=config%2Fdotfiles.git 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.