prevent battery_charge call from erroring in themes when battery plugin not enabled
This commit is contained in:
@@ -216,3 +216,12 @@ function scm_char {
|
|||||||
function prompt_char {
|
function prompt_char {
|
||||||
scm_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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user