Skip to content

Instantly share code, notes, and snippets.

@MarcinZukowski
Created March 6, 2019 21:48
Show Gist options
  • Save MarcinZukowski/fa554494240eceb4063883fc21c3e4a8 to your computer and use it in GitHub Desktop.
Save MarcinZukowski/fa554494240eceb4063883fc21c3e4a8 to your computer and use it in GitHub Desktop.
Automatically saving joe backup files in a temporary directory, versioned by minute
# 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