4 ms·
Another idea: an indication of how many background jobs are currently running. With many terminal tabs open, I can forget if I already have $EDITOR (or somethin
by cstrahan 1y ago
Another idea: an indication of how many background jobs are currently running. With many terminal tabs open, I can forget if I already have $EDITOR (or something else) running, so the number of jobs can be a nice cue.
_jobscount() {
local jobs=($(jobs -p))
local count=${#jobs[@]}
(($count)) && echo -n " (${count}j)"
}
And then put that in your prompt.