aboutsummaryrefslogtreecommitdiffstats
path: root/devi.zsh-theme
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-05-20 11:57:49 +0000
committerterminaldweller <thabogre@gmail.com>2022-05-20 11:57:49 +0000
commitb94c6510a470760fd226c29be3700e93556b148d (patch)
tree616c9bde3e66099229fdeed11714a90e556a7925 /devi.zsh-theme
parentirssi (diff)
downloadscripts-b94c6510a470760fd226c29be3700e93556b148d.tar.gz
scripts-b94c6510a470760fd226c29be3700e93556b148d.zip
update
Diffstat (limited to 'devi.zsh-theme')
-rw-r--r--devi.zsh-theme7
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