mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-12 08:10:07 +00:00
fix wc glitch on OSX
This commit is contained in:
parent
11d00ce713
commit
29b346930b
1 changed files with 1 additions and 1 deletions
|
@ -292,7 +292,7 @@ prompt_aws() {
|
|||
# Segment to indicate background jobs with an icon.
|
||||
set_default POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE true
|
||||
prompt_background_jobs() {
|
||||
local background_jobs_number=$(jobs -l | wc -l)
|
||||
local background_jobs_number=${$(jobs -l | wc -l)// /}
|
||||
if [[ background_jobs_number -gt 0 ]]; then
|
||||
local background_jobs_number_print=""
|
||||
if [[ POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE ]] && [[ background_jobs_number -gt 1 ]]; then
|
||||
|
|
Loading…
Reference in a new issue