Copied command_exists function to the helpers lib so that there is no hidden dependency on the base plugin
The original command_exists function will stay in the base plugin, but will no longer be used by other plugins or themes.
This commit is contained in:
@@ -152,7 +152,7 @@ ___brainy_prompt_clock() {
|
||||
}
|
||||
|
||||
___brainy_prompt_battery() {
|
||||
! command_exists battery_percentage ||
|
||||
! _command_exists battery_percentage ||
|
||||
[ "${THEME_SHOW_BATTERY}" != "true" ] ||
|
||||
[ "$(battery_percentage)" = "no" ] && return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user