From a8b4efd8bc6f58cf7ecbc11a2ef14c9fe52cc75b Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Mon, 26 Nov 2018 13:32:03 -0500 Subject: [PATCH] Fix jobs counting Sometimes jobs would be counted twice; work around this issue --- themes/gentoo-wilder.zsh-theme | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/gentoo-wilder.zsh-theme b/themes/gentoo-wilder.zsh-theme index 73efbc0d7..537a749f1 100644 --- a/themes/gentoo-wilder.zsh-theme +++ b/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