diff options
Diffstat (limited to '')
-rw-r--r-- | devi.zsh-theme | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/devi.zsh-theme b/devi.zsh-theme index 26de429..6e554b2 100644 --- a/devi.zsh-theme +++ b/devi.zsh-theme @@ -191,9 +191,10 @@ sneaky() { } bg_job_count() { - local count=$(jobs | wc -l) - if [[ $count > 0 ]];then - echo " $count" + # job_count=$("jobs" | wc -l) + local job_count=$(echo $jobstates | awk 'END{print NF}') + if [[ $job_count > 0 ]];then + echo " $job_count" else ; fi |