Skip to content

Commit

Permalink
Fix the jobs number not showing (#5)
Browse files Browse the repository at this point in the history
* Fix the jobs number not showing

Before, it only showed one job

Now it lists the number of jobs instead
  • Loading branch information
BarbzYHOOL authored and Beau Hastings committed May 13, 2018
1 parent 5ed4651 commit bbc23d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fish_prompt.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bbc23d8

Please sign in to comment.