Skip to content

Instantly share code, notes, and snippets.

@adamkdean
Last active September 3, 2015 14:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamkdean/021e13025f83904b1bb6 to your computer and use it in GitHub Desktop.
Save adamkdean/021e13025f83904b1bb6 to your computer and use it in GitHub Desktop.
Organise your bash history
# Organise your bash history, thanks to:
# https://twitter.com/michaelhoffman/status/639178145673932800
mkdir -p "${HOME}/.history/$(date -u +%Y/%m)"
export HISTFILE="${HOME}/.history/$(date -u +%Y/%m/%d.%H.%M.%S)_${HOSTNAME}_$$"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment