mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-21 00:01:26 +01:00
15094: don't display battery level of -1%
This commit is contained in:
parent
e067118efc
commit
760d3b89a3
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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 "$@"
|
||||
|
|
Loading…
Reference in a new issue