diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2015-12-15 02:55:55 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2015-12-15 03:59:46 +0300 |
commit | 1194826ef4eb876edbf3cec427eca37eda976a02 (patch) | |
tree | f9a8d510062622711be47342cdcc5d788b508158 /powerlevel9k.zsh-theme | |
parent | 0c528461fb1e5f38e1d4ee32c696a6955f5bfaa0 (diff) |
Used the new "visual identifier" concept for the battery segment.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 7c7b2d2e..7a06002a 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -346,15 +346,15 @@ prompt_battery() { fi # prepare string - local message="$(print_icon 'BATTERY_ICON')" + local message # Default behavior: Be verbose! set_default POWERLEVEL9K_BATTERY_VERBOSE true if [[ "$POWERLEVEL9K_BATTERY_VERBOSE" == true ]]; then - message="$message $bat_percent%%$remain" + message="$bat_percent%%$remain" fi # display prompt_segment - [[ -n $bat_percent ]] && "$1_prompt_segment" "${0}_${current_state}" "$DEFAULT_COLOR" "${battery_states[$current_state]}" "$message" + [[ -n $bat_percent ]] && "$1_prompt_segment" "${0}_${current_state}" "$DEFAULT_COLOR" "${battery_states[$current_state]}" "$message" 'BATTERY_ICON' } # Context: user@hostname (who am I and where am I) |