Open cyberhck opened 5 years ago
Same here on Fedora Workstation 30:
acpi
is installed, when I run echo "$(acpi | cut -f2 -d ',' | tr -cd '[:digit:]')"
in my terminal, it prints out the battery percentage but i still get the following two errors when using agnosterzak
:
prompt_battery:[:78: unknown condition: -gt
prompt_battery:[:80: unknown condition: -gt
I also already tried changing the single brackets [...] into double brackets [[...]] as mentioned here: https://github.com/zakaziko99/agnosterzak-ohmyzsh-theme/issues/8. Still same error.
https://github.com/zakaziko99/agnosterzak-ohmyzsh-theme/blob/1a6bd156e4133a87b35738ea5dbfb928d7ca1473/agnosterzak.zsh-theme#L156-L164
I worked around by forcing it to true but someone has to have a look.
I have acpi installed on machine, and that line is where it fails to enter through