prevent battery_charge call from erroring in themes when battery plugin not enabled

pull/261/head
Ben Brunton 2014-11-12 17:27:38 +00:00 committed by Hector Rivas
parent 3451a67876
commit 1a74e54b3f
1 changed files with 9 additions and 0 deletions

View File

@ -216,3 +216,12 @@ function scm_char {
function prompt_char {
scm_char
}
if [ ! -e $BASH_IT/plugins/enabled/battery.plugin.bash ]; then
# if user has installed battery plugin, skip this...
function battery_charge (){
# no op
echo -n
}
fi