.config/fish/functions/bat-stat.fish
1 2 3 4 |
function bat-stat --wraps='upower -i /org/freedesktop/UPower/devices/battery_BAT1 | grep --color=never -E "state|to full|percentage"' --description 'alias bat-stat=upower -i /org/freedesktop/UPower/devices/battery_BAT1 | grep --color=never -E "state|to full|percentage"' upower -i /org/freedesktop/UPower/devices/battery_BAT1 | grep --color=never -E "state|to full|percentage" $argv end |