diff options
-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 "$@" |