1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 05:40:08 +00:00

Prevent errors in prompts if no info available.

Define empty functions instead of none at all if we can't figure out the
platform.
This commit is contained in:
James Seward 2013-11-04 21:00:11 -05:00
parent e30a1243dc
commit 8cfc7d6677

View file

@ -79,4 +79,14 @@ elif [[ $(uname) == "Linux" ]] ; then
echo "∞" echo "∞"
fi fi
} }
else
# Empty functions so we don't cause errors in prompts
function battery_pct_remaining() {
}
function battery_time_remaining() {
}
function battery_pct_prompt() {
}
fi fi