mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +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%}"
|
||||
}
|
||||
else
|
||||
error_msg='no battery'
|
||||
error_msg="∞"
|
||||
function battery_pct_remaining() { echo $error_msg }
|
||||
function battery_time_remaining() { echo $error_msg }
|
||||
function battery_pct_prompt() { echo '' }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue