tide/functions/_tide_item_jobs.fish
2020-09-06 21:34:58 -07:00

10 lines
363 B
Fish

function _tide_item_jobs
if jobs --quiet # Use jobs --quiet because its faster and most people wont use verbose
if test "$tide_jobs_verbose" = true
set jobs_number (jobs --pid | count) # --pid because it's faster than just jobs
end
set_color $tide_jobs_color
printf '%s' $tide_jobs_icon ' '$jobs_number
end
end