diff options
author | terminaldweller <thabogre@gmail.com> | 2022-05-20 11:57:49 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-05-20 11:57:49 +0000 |
commit | b94c6510a470760fd226c29be3700e93556b148d (patch) | |
tree | 616c9bde3e66099229fdeed11714a90e556a7925 /devi.zsh-theme | |
parent | irssi (diff) | |
download | scripts-b94c6510a470760fd226c29be3700e93556b148d.tar.gz scripts-b94c6510a470760fd226c29be3700e93556b148d.zip |
update
Diffstat (limited to 'devi.zsh-theme')
-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 |