From bbc23d868d78891252a2bed1e759b96b3341c8bb Mon Sep 17 00:00:00 2001 From: Barbz Date: Sun, 13 May 2018 03:49:43 +0200 Subject: [PATCH] Fix the jobs number not showing (#5) * Fix the jobs number not showing Before, it only showed one job Now it lists the number of jobs instead --- fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index a0447b7..7ec8b89 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -112,7 +112,7 @@ function __theme_print_git_status end function __theme_print_jobs [ "$theme_display_jobs" = 'no' ]; and return - set -l num_jobs (jobs -l | command wc -l) + set -l num_jobs (jobs -c | command wc -l) if [ $num_jobs -gt 0 -o "$theme_display_jobs_always" = "yes" ] print_colored "$theme_prompt_status_jobs_char" $theme_color_status_prefix