Created
March 6, 2019 21:48
-
-
Save MarcinZukowski/fa554494240eceb4063883fc21c3e4a8 to your computer and use it in GitHub Desktop.
Automatically saving joe backup files in a temporary directory, versioned by minute
This file contains hidden or 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
# For joe - put backups in a separate directory, and version per minute | |
mkdir -p $HOME/tmp/joe-backup | |
alias joe="joe --backpath $HOME/tmp/joe-backup" | |
export PROMPT_COMMAND=$PROMPT_COMMAND'export SIMPLE_BACKUP_SUFFIX=-`date +%Y%m%d-%H%M`;' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment