about summary refs log tree commit diff
path: root/Functions/Prompts
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2001-06-26 13:48:54 +0000
committerClint Adams <clint@users.sourceforge.net>2001-06-26 13:48:54 +0000
commit760d3b89a35743f79f825854d5fb4b04d0d261d7 (patch)
treea34299f748368846256b59604d056a3420ff180c /Functions/Prompts
parente067118efc45036e2c23d0287acfd0ef463e6fbb (diff)
downloadzsh-760d3b89a35743f79f825854d5fb4b04d0d261d7.tar.gz
zsh-760d3b89a35743f79f825854d5fb4b04d0d261d7.tar.xz
zsh-760d3b89a35743f79f825854d5fb4b04d0d261d7.zip
15094: don't display battery level of -1%
Diffstat (limited to 'Functions/Prompts')
-rw-r--r--Functions/Prompts/prompt_clint_setup2
1 files changed, 1 insertions, 1 deletions
diff --git a/Functions/Prompts/prompt_clint_setup b/Functions/Prompts/prompt_clint_setup
index 92decb8f6..4f14fff8d 100644
--- a/Functions/Prompts/prompt_clint_setup
+++ b/Functions/Prompts/prompt_clint_setup
@@ -67,7 +67,7 @@ prompt_clint_apm_precmd () {
   local bat
 
   bat=${${="$(</proc/apm)"}[7]/%/%%}
-  [[ $bat == "100%" ]] && psvar[2]=() || psvar[2]=$bat
+  [[ $bat == ("100%"|"-1%") ]] && psvar[3]=() || psvar[2]=$bat
 }
 
 prompt_clint_setup "$@"