dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit ccd207aaf5c0b985a7ee04c3a0bccf8b05a8ed6d
parent 8129c89ca1c8f4181e64262dc35721dceacc264b
Author: Anders Damsgaard Christensen <adc@geo.au.dk>
Date:   Mon,  9 Jan 2017 14:12:17 -0800

show number of background jobs in zsh prompt

Diffstat:
M.zshrc | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.zshrc b/.zshrc @@ -15,8 +15,11 @@ compinit promptinit colors +# check for background jobs +local bg_jobs="%(1j.%{$fg[yellow]%}%j%{$reset_color%}%{$fg[red]%}z%{$reset_color%}.)" + PROMPT=" -%{$fg[red]%} » %{$reset_color%}" +${bg_jobs}%{$fg[red]%} » %{$reset_color%}" #PROMPT='%B%m%~%b$(git_super_status) %# ' #PROMPT=' #%b$(git_super_status) %{$fg[red]%}»%{$reset_color%} '