1
0
Fork 0
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:
v1rgul 2016-01-22 01:56:43 +01:00
parent 11d00ce713
commit 29b346930b

View file

@ -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