Traceback (most recent call last):
File "/home/ilya/zsh-history-to-fish/virtualenv/bin/zsh-history-to-fish", line 10, in <module>
sys.exit(exporter())
File "/home/ilya/zsh-history-to-fish/virtualenv/lib/python3.7/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/ilya/zsh-history-to-fish/virtualenv/lib/python3.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/ilya/zsh-history-to-fish/virtualenv/lib/python3.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/ilya/zsh-history-to-fish/virtualenv/lib/python3.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/ilya/zsh-history-to-fish/virtualenv/lib/python3.7/site-packages/zsh_history_to_fish/command.py", line 68, in exporter
for line in history(input):
File "/home/ilya/zsh-history-to-fish/virtualenv/lib/python3.7/site-packages/zsh_history_to_fish/command.py", line 17, in history
line = line.replace(b'\xe2\x80\x83\xb4', b'-').decode('utf-8').strip()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb8 in position 27: invalid start byte
Here’s a workaround. Edit the following line in
command.py:https://github.com/rsalmei/zsh-history-to-fish/blob/b807eb1842c31d08d30972a2165c0f1e6dcbc7ea/zsh_history_to_fish/command.py#L17
And replace this part:
By this:
Save the file and run the script again.