diff options
author | Clint Adams <clint@users.sourceforge.net> | 2001-06-26 13:48:54 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2001-06-26 13:48:54 +0000 |
commit | 760d3b89a35743f79f825854d5fb4b04d0d261d7 (patch) | |
tree | a34299f748368846256b59604d056a3420ff180c /Functions/Prompts | |
parent | e067118efc45036e2c23d0287acfd0ef463e6fbb (diff) | |
download | zsh-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_setup | 2 |
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 "$@" |