8 ms·
Yep! We support a whole bunch more too (fish, resh, zsh-histdb, etc), need to update the docs
by ellieh 3y ago
Yep! We support a whole bunch more too (fish, resh, zsh-histdb, etc), need to update the docs
- klibertp 3y agohttps://github.com/ellie/atuin/blob/main/atuin-client/src/import/zsh.rs#L68 https://github.com/ellie/atuin/blob/main/atuin-client/src/im... > // we can skip past things like invalid utf8 No, you can't! Thanks to some bizarre escaping that happens when ZSH (and BASH, I think) dumps commands to the history file, any command with non-latin1 characters will break here and won't be read, moreover - silently! The other possibility is that you'll import wrong characters. Grep the ZSH source for "unmetafy", you'll see; I have it extracted here: https://github.com/piotrklibert/zsh-merge-hist/blob/master/unmetafy/unmetafy.c https://github.com/piotrklibert/zsh-merge-hist/blob/master/u...