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 committed by Benjamin Bach
commit 8d151e8f73

View file

@ -83,4 +83,14 @@ elif [[ $(uname) == "Linux" ]] ; then
echo "∞"
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