Skip to content

Commit

Permalink
Check for jobs before printing, fixes #253 for realz
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Dahan committed Jun 2, 2019
1 parent 3bfc4f5 commit fae975d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/geometry_jobs.zsh
Original file line number Diff line number Diff line change
@@ -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.)'; }

0 comments on commit fae975d

Please sign in to comment.