aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/prompt.bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bashrc.d/prompt.bash')
-rw-r--r--bash/bashrc.d/prompt.bash8
1 files changed, 4 insertions, 4 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash
index d6a2f65a..e96d9b24 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -240,7 +240,7 @@ prompt() {
((jobc++))
done < <(jobs -p)
if ((jobc > 0)) ; then
- printf '{%d}' "$jobc"
+ printf '{%u}' "$jobc"
fi
;;
@@ -248,10 +248,10 @@ prompt() {
# systems only)
nice)
if [[ -r /proc/"$$"/stat ]] ; then
- read -r _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ nice _ \
+ read -r _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ nice _ \
< /proc/"$$"/stat
- if ((nice != 20)) ; then
- printf '^%d' "$((nice - 20))"
+ if ((nice != 0)) ; then
+ printf '^%d' "$nice"
fi
fi
;;