To install, edit/add/remove the files as necessary and run sh install.sh
After verify everything is working fine, we can do an additional step to clean up the old file: sh cleanup.sh
sh backup.sh
sh git-push.sh "Optional commit message"
Add backup-and-push.sh to crontab
Backup both .ssh and .zsh_history files to a private git (free by Keybase), make sure all the SSH keys have a strong pass-phrase just in case.
I am very lazy to type so almost all command is loaded from history, thanks to peco, more information please search for peco-zsh-history
It looks like this: (from http://interprism.hatenablog.com/entry/peco-zsh-history)