Fix jobs counting

Sometimes jobs would be counted twice; work around this issue
Jacopo De Simoi 7 years ago committed by Jacopo De Simoi
parent 5b02ce0da6
commit c11fb56390
  1. 4
      themes/gentoo-wilder.zsh-theme

@ -1,6 +1,8 @@
#! /bin/zsh
# I am not sure why one needs to grep, but otherwise some jobs are counted twice.
function get_nr_jobs() {
repeat $(jobs | wc -l) printf '▶'
repeat $(jobs | grep "\[" | wc -l) printf '▶'
}
# Solarized

Loading…
Cancel
Save