mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 03:59:58 +00:00
fixed with @dylanaraps suggestions from #1
This commit is contained in:
3
neofetch
3
neofetch
@@ -1622,9 +1622,8 @@ getbattery () {
|
||||
"Mac OS X")
|
||||
battery="$(pmset -g batt | grep -o '[0-9]*%')"
|
||||
power_status="$(pmset -g batt | awk 'NR==2 {print $3}')"
|
||||
if [ "$power_status" == "charging;" ]; then
|
||||
[ "$power_status" == "charging;" ] && \
|
||||
battery="${battery} Charging"
|
||||
fi
|
||||
;;
|
||||
|
||||
"Windows")
|
||||
|
||||
Reference in New Issue
Block a user