Last active
June 4, 2021 12:21
-
-
Save atomicstack/0f708e8fa9b595e5ba377700177a4b9f to your computer and use it in GitHub Desktop.
back up my zsh history (via crontab) (double check paths before use!)
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
/bin/cat $HOME/.zsh_history | /usr/local/bin/xz > $HOME/.zsh_history.d/zsh_history.$(/usr/local/bin/gdate +%F-%T).xz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment