From 623dabfdf48d4f1f4629945f418005e62eff4eb7 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 14 Sep 2013 14:57:04 +1200 Subject: Restrict output of jobs builtin for count to PIDs --- bash/bashrc.d/prompt.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash') diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash index f3f1416f..cb883776 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -186,7 +186,7 @@ prompt() { local jobc=0 while read -r _; do ((jobc++)) - done < <(jobs) + done < <(jobs -p) if ((jobc > 0)); then printf '{%d}' "$jobc" fi -- cgit v1.2.3