Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

battery_percentage: command not found #220

Closed
HishamYUM opened this issue Jun 11, 2021 · 5 comments · Fixed by #289
Closed

battery_percentage: command not found #220

HishamYUM opened this issue Jun 11, 2021 · 5 comments · Fixed by #289

Comments

@HishamYUM
Copy link

I was in zsh, and after I changed my theme to "kitsune", and changed my shell to bash I got this error line "battery_percentage: command not found". But my shell is working properly anyway. How can I fix this?
I am using Kali Linux 2021.1

@atchisson
Copy link

atchisson commented Aug 25, 2021

Hi,

It looks like kitsune theme need the battery plugin.
To enable it, open the file $HOME/.bashrc, look for plugins=( and add battery is the list.

Hope it helped!

@dokuur
Copy link

dokuur commented Jan 6, 2022

Hi,
I have the same issue.
I added plugin battery to my plugins and got a new issue:

about: command not found

Command 'group' not found, did you mean:

  command 'grop' from deb grop
  command 'groups' from deb coreutils

Try: sudo apt install <deb name>

@akinomyoga
Copy link
Contributor

Thanks for the report. I've checked the implementation of battery.plugin.sh to find that it actually uses functions about and group. In the past, there seems to have been a related issue #68 (#104) for the function _command_exists. These functions are defined in bash-it. I guess this file was originally the plugin designed for Bash-it and then just copied into oh-my-bash without adjustment. I think I need to refactor the implementation of battery later.

@akinomyoga
Copy link
Contributor

akinomyoga commented Jan 8, 2022

I've fixed them in PR #289 (not yet pushed to master).

  • The problem that group and about are not found is fixed in commit b2ba5d8.
  • The problem that battery plugin is not loaded should be resolved by commit 509a8b3.
  • There are other bug fixes in both kitsune.theme and battery.plugin.

@dokuur Could you test the branch fix-kitsune-and-battery?

@akinomyoga
Copy link
Contributor

I have merged #289. Thanks.

@akinomyoga akinomyoga mentioned this issue Jan 15, 2022
42 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants