mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-21 23:01:57 +00:00
Updating variable name for always showing jobs count
This commit is contained in:
parent
698697a710
commit
46fb03ed19
1 changed files with 2 additions and 2 deletions
|
@ -305,7 +305,7 @@ prompt_aws_eb_env() {
|
||||||
|
|
||||||
# Segment to indicate background jobs with an icon.
|
# Segment to indicate background jobs with an icon.
|
||||||
set_default POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE true
|
set_default POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE true
|
||||||
set_default POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE_EVEN_ONE false
|
set_default POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE_ALWAYS false
|
||||||
prompt_background_jobs() {
|
prompt_background_jobs() {
|
||||||
local background_jobs_number=${$(jobs -l | wc -l)// /}
|
local background_jobs_number=${$(jobs -l | wc -l)// /}
|
||||||
local wrong_lines=`jobs -l | awk '/pwd now/{ count++ } END {print count}'`
|
local wrong_lines=`jobs -l | awk '/pwd now/{ count++ } END {print count}'`
|
||||||
|
@ -314,7 +314,7 @@ prompt_background_jobs() {
|
||||||
fi
|
fi
|
||||||
if [[ background_jobs_number -gt 0 ]]; then
|
if [[ background_jobs_number -gt 0 ]]; then
|
||||||
local background_jobs_number_print=""
|
local background_jobs_number_print=""
|
||||||
if [[ "$POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE" == "true" ]] && ([[ "$background_jobs_number" -gt 1 ]] || [[ "$POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE_EVEN_ONE" == "true" ]]); then
|
if [[ "$POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE" == "true" ]] && ([[ "$background_jobs_number" -gt 1 ]] || [[ "$POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE_ALWAYS" == "true" ]]); then
|
||||||
background_jobs_number_print="$background_jobs_number"
|
background_jobs_number_print="$background_jobs_number"
|
||||||
fi
|
fi
|
||||||
"$1_prompt_segment" "$0" "$2" "$DEFAULT_COLOR" "cyan" "$background_jobs_number_print" 'BACKGROUND_JOBS_ICON'
|
"$1_prompt_segment" "$0" "$2" "$DEFAULT_COLOR" "cyan" "$background_jobs_number_print" 'BACKGROUND_JOBS_ICON'
|
||||||
|
|
Loading…
Reference in a new issue