diff --git a/functions/geometry_jobs.zsh b/functions/geometry_jobs.zsh index 5951eb01..cbebda50 100644 --- a/functions/geometry_jobs.zsh +++ b/functions/geometry_jobs.zsh @@ -1,3 +1,3 @@ # geometry_jobs - show background jobs count `⚙ 1` -geometry_jobs() { ansi ${GEOMETRY_JOBS_COLOR:=blue} '%(1j.'${GEOMETRY_JOBS_SYMBOL:="⚙"}' %j.)'; } +geometry_jobs() { [[ 0 -ne "$(jobs | wc -l)" ]] && ansi ${GEOMETRY_JOBS_COLOR:=blue} '%(1j.'${GEOMETRY_JOBS_SYMBOL:="⚙"}' %j.)'; }