mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-12 19:18:28 +02:00
fix wc glitch on OSX
This commit is contained in:
parent
11d00ce713
commit
29b346930b
@ -292,7 +292,7 @@ prompt_aws() {
|
|||||||
# 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
|
||||||
prompt_background_jobs() {
|
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
|
if [[ background_jobs_number -gt 0 ]]; then
|
||||||
local background_jobs_number_print=""
|
local background_jobs_number_print=""
|
||||||
if [[ POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE ]] && [[ background_jobs_number -gt 1 ]]; then
|
if [[ POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE ]] && [[ background_jobs_number -gt 1 ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user