From 715ea56ecccf8b88aca5f57dc51fef54eb47e445 Mon Sep 17 00:00:00 2001 From: arcan1s Date: Sat, 11 Jun 2016 14:59:06 +0300 Subject: [PATCH] fix error in battery definition --- zsh/prompt.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh/prompt.zsh b/zsh/prompt.zsh index c6ef34d..087c6c1 100644 --- a/zsh/prompt.zsh +++ b/zsh/prompt.zsh @@ -28,9 +28,9 @@ precmd() { done _bat_perc=$((${_bat_perc}/${_num})) local _col - if [[ ${_bat_perc} < 15 ]]; then + if [[ ${_bat_perc} -lt 15 ]]; then _col="%{$fg_bold[red]%}" - elif [[ ${_bat_perc} < 50 ]]; then + elif [[ ${_bat_perc} -lt 50 ]]; then _col="%{$fg_bold[yellow]%}" else _col="%{$fg_bold[green]%}"