Commit 8cfc7d66 authored by James Seward's avatar James Seward
Browse files

Prevent errors in prompts if no info available.

Define empty functions instead of none at all if we can't figure out the
platform.
parent e30a1243
...@@ -79,4 +79,14 @@ elif [[ $(uname) == "Linux" ]] ; then ...@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment