1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2026-04-24 07:13:28 +02:00

Merge pull request #2222 from jamesoff/fix-battery-plugin

Prevent errors in prompts if no battery info available.
This commit is contained in:
Robby Russell
2013-12-02 22:39:45 -08:00
+10
View File
@@ -79,4 +79,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