diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-09-14 14:57:04 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-09-14 14:57:04 +1200 |
commit | 623dabfdf48d4f1f4629945f418005e62eff4eb7 (patch) | |
tree | dad7a78435e0e891c91c80b47a1d88587ab196c8 /bash/bashrc.d/prompt.bash | |
parent | Explicitly unset variables (diff) | |
download | dotfiles-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.bash | 2 |
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 |