aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-09-10 14:19:57 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-09-10 14:19:57 +1200
commita553ab90d82cee281b135331806126466c547b94 (patch)
tree721635acb484a454094677d7137fa0ed56319a7d /bash
parentFail early if VCS binaries not found (diff)
downloaddotfiles-a553ab90d82cee281b135331806126466c547b94.tar.gz
dotfiles-a553ab90d82cee281b135331806126466c547b94.zip
Use _ to prevent polluting namespace
Diffstat (limited to '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 6864ce19..f3f1416f 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -184,7 +184,7 @@ prompt() {
# Show the count of background jobs in curly brackets
job)
local jobc=0
- while read -r line; do
+ while read -r _; do
((jobc++))
done < <(jobs)
if ((jobc > 0)); then