tide/functions/_tide_item_jobs.fish
2020-09-08 08:13:15 -07:00

11 lines
374 B
Fish

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