diff --git a/dot_config/fish/conf.d/20-aliases.fish b/dot_config/fish/conf.d/20-aliases.fish index 469219e..2f4b58d 100644 --- a/dot_config/fish/conf.d/20-aliases.fish +++ b/dot_config/fish/conf.d/20-aliases.fish @@ -79,4 +79,7 @@ end # Check battery. -upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -E "state|time to|percentage" +function batt -d "Check battery percentage" + upower -i /org/freedesktop/UPower/devices/battery_BAT0 \ + | grep -E "state|time to|percentage" +end