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 | |
parent | e067118efc45036e2c23d0287acfd0ef463e6fbb (diff) | |
download | zsh-760d3b89a35743f79f825854d5fb4b04d0d261d7.tar.gz zsh-760d3b89a35743f79f825854d5fb4b04d0d261d7.tar.xz zsh-760d3b89a35743f79f825854d5fb4b04d0d261d7.zip |
15094: don't display battery level of -1%
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Functions/Prompts/prompt_clint_setup | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 19abe4d5f..ad778d1f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-06-26 Clint Adams <clint@zsh.org> + + * 15094: Functions/Prompts/prompt_clint_setup: + don't display battery level if it's -1%. + 2001-06-26 Sven Wischnowsky <wischnow@zsh.org> * user/3946: Src/Zle/computil.c: fix for finding the first 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 "$@" |