Open wizonesolutions opened 3 years ago
Oh, I think I see the issue: fish
isn't supported by the tool 😅
It does seem like the fallback regex should be working, though. Here's what history.txt
looks like:
env | grep -i utf
shell_history_analysis --shell=fish ~/Downloads/history.txt
cp ~/.local/share/fish/fish_history ~/Downloads/history.txt
head ~/Downloads/history.txt
vim ~/.local/share/fish/fish_history
vim ~/Downloads/history.txt
wc -l ~/Downloads/history.txt
man history
history
shell_history_analysis --shell=fish
Here's what ~/.local/share/fish/fish_history
looks like:
- cmd: pacman -S brave-browser
when: 1565611653
- cmd: sudo pacman -S brave-browser
when: 1565611653
- cmd: sudo sysctl kernel.unprivileged_userns_clone=1
when: 1565611653
- cmd: echo kernel.unprivileged_userns_clone = 1 | sudo tee /etc/sysctl.d/00-local-userns.conf
when: 1565611653
- cmd: inix -G
when: 1565611653
I dumped my fish history to
history.txt
by runninghistory > ~/Downloads/history.txt
Then I ran:
shell_history_analysis --shell=fish ~/Downloads/history.txt
The output I got was:
It seems to be something with the file encoding, but I'm not entirely sure what. My
LANG
is set toen_US.UTF-8
.I tried with a copy of
~/.local/share/fish/fish_history
as well, but I got the same error with the position of the invalid continuation byte being different.What am I doing wrong?