mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-22 04:51:12 +02:00
fix(battery): support running with nounset option
This commit is contained in:
parent
1902a0544c
commit
786eea24c6
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ if [[ "$OSTYPE" = darwin* ]]; then
|
|||
if [[ "${BATTERY_SHOW_WATTS}" = "true" ]] ; then
|
||||
watts=$(get_charger_power)
|
||||
fi
|
||||
echo "${watts}${BATTERY_CHARGING-⚡️}"
|
||||
echo "${watts:-}${BATTERY_CHARGING-⚡️}"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue