bamos / zsh-history-analysis

Plot your .zsh_history.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KeyError: 'histogram'

Anonymous941 opened this issue · comments

When running ./analyze.py topCommands, this error is shown:

y: Command, x: Frequency
Traceback (most recent call last):
  File "/.../zsh-history-analysis/./analyze.py", line 192, in <module>
    chart(colors=[], data=data, args=chart_args, labels=labels)
  File "/.../.venv/lib/python3.12/site-packages/termgraph/termgraph.py", line 534, in chart
    if args["histogram"]:
       ~~~~^^^^^^^^^^^^^
KeyError: 'histogram'

I fixed it and made a PR in #9

thanks!