Update atomic.theme.bash

Theme improved to 100%
pull/968/head
Luis Felipe Sánchez 2017-05-28 13:39:48 -05:00 committed by GitHub
parent f936b1e485
commit 7d318def48
1 changed files with 1 additions and 3 deletions

View File

@ -27,8 +27,6 @@ Face="\342\230\273"
## Parsers ##
#############
isFunction() { [[ "$(declare -Ff "$1")" ]]; }
____atomic_top_left_parse() {
ifs_old="${IFS}"
IFS="|"
@ -166,7 +164,7 @@ ___atomic_prompt_clock() {
}
___atomic_prompt_battery() {
chk=$(isFunction battery_percentage && echo yes || echo no)
chk=$(command_exists battery_percentage && echo yes || echo no)
[ "$chk" != "yes" ] || [ "${THEME_SHOW_BATTERY}" != "true" ] && return
batp=$(battery_percentage)
if [ "$batp" -eq 50 ] || [ "$batp" -gt 50 ]; then