dotfiles/fish/functions/_pure_prompt_jobs.fish

10 lines
311 B
Fish

function _pure_prompt_jobs --description "Display number of running jobs"
if test $pure_show_jobs = true
set --local njobs (count (jobs -p))
set --local jobs_color (_pure_set_color $pure_color_jobs)
if test $njobs -gt 0
echo "$jobs_color"[$njobs]
end
end
end