mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-13 03:12:21 +01:00
syntax change for zsh version compatibility
This commit is contained in:
parent
6d7e6c4171
commit
11188fc279
1 changed files with 1 additions and 1 deletions
|
|
@ -135,7 +135,7 @@ function battery_level_gauge() {
|
||||||
|
|
||||||
local battery_remaining_percentage=$(battery_pct);
|
local battery_remaining_percentage=$(battery_pct);
|
||||||
|
|
||||||
if [[ $1 ]] && [[ $2 ]]; then
|
if [ "$1" ] && [ "$2" ]; then
|
||||||
filled_symbol=${BATTERY_GAUGE_FILLED_SYMBOL:-$1};
|
filled_symbol=${BATTERY_GAUGE_FILLED_SYMBOL:-$1};
|
||||||
empty_symbol=${BATTERY_GAUGE_EMPTY_SYMBOL:-$2};
|
empty_symbol=${BATTERY_GAUGE_EMPTY_SYMBOL:-$2};
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue