Last active
September 3, 2015 14:16
-
-
Save adamkdean/021e13025f83904b1bb6 to your computer and use it in GitHub Desktop.
Organise your bash history
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
# 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