This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
ZSH history convert script. | |
When you mistakenly type your password or quite bad command into ZSH, | |
you may want to remove the entry from the history. | |
The problem is, the .zsh_history is encoded in a weird format! | |
If you want to find a command with non-ASCII character, it'll be problematic. |