mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-09 02:24:03 +01:00
Changed the error message for linux when no battery is detected.
This commit is contained in:
parent
5991bf3ac1
commit
4beda4f1c2
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ elif [[ $(uname) == "Linux" ]] ; then
|
||||||
echo "%{$fg[$color]%}[$(battery_pct_remaining)%%]%{$reset_color%}"
|
echo "%{$fg[$color]%}[$(battery_pct_remaining)%%]%{$reset_color%}"
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
error_msg='no battery'
|
error_msg="∞"
|
||||||
function battery_pct_remaining() { echo $error_msg }
|
function battery_pct_remaining() { echo $error_msg }
|
||||||
function battery_time_remaining() { echo $error_msg }
|
function battery_time_remaining() { echo $error_msg }
|
||||||
function battery_pct_prompt() { echo '' }
|
function battery_pct_prompt() { echo '' }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue