Commit e25329fc authored by Robby Russell's avatar Robby Russell
Browse files

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

Prevent errors in prompts if no battery info available.
parents fb614a0e 8cfc7d66
......@@ -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
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