1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-12 08:10:07 +00:00

count suspended jobs too

This commit is contained in:
romkatv 2019-03-13 19:20:11 +01:00
parent f2787c7aad
commit 8de106d0e3

View file

@ -313,7 +313,7 @@ prompt_aws_eb_env() {
set_default POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE true
set_default POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE_ALWAYS false
prompt_background_jobs() {
local n && n="${(fw)#$(jobs -rd)}" && ((n > 1)) || return
local n && n="${(fw)#$(jobs -d)}" && ((n > 1)) || return
(( n /= 2 ))
local prompt=''