tide/functions/_tide_item_jobs.fish
2020-08-24 17:20:45 -07:00

10 lines
365 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 faste than just jobs
end
set_color $tide_jobs_color
printf '%s' $tide_jobs_icon ' '{$jobs_number}
end
end