aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/prompt.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-09-14 14:57:04 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-09-14 14:57:04 +1200
commit623dabfdf48d4f1f4629945f418005e62eff4eb7 (patch)
treedad7a78435e0e891c91c80b47a1d88587ab196c8 /bash/bashrc.d/prompt.bash
parentExplicitly unset variables (diff)
downloaddotfiles-623dabfdf48d4f1f4629945f418005e62eff4eb7.tar.gz
dotfiles-623dabfdf48d4f1f4629945f418005e62eff4eb7.zip
Restrict output of jobs builtin for count to PIDs
Diffstat (limited to 'bash/bashrc.d/prompt.bash')
-rw-r--r--bash/bashrc.d/prompt.bash2
1 files changed, 1 insertions, 1 deletions
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