From b94c6510a470760fd226c29be3700e93556b148d Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Fri, 20 May 2022 16:27:49 +0430 Subject: update --- devi.zsh-theme | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'devi.zsh-theme') 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 -- cgit v1.2.3