Last active
September 3, 2015 14:16
-
-
Save adamkdean/021e13025f83904b1bb6 to your computer and use it in GitHub Desktop.
Revisions
-
adamkdean revised this gist
Sep 3, 2015 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,4 @@ # 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}_$$" -
adamkdean revised this gist
Sep 3, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ # Organise your bash history, thanks to: # https://twitter.com/michaelhoffman/status/639178145673932800 if [ ! -d "${HOME}/.history/$(date -u +%Y)" ]; then mkdir "${HOME}/.history/$(date -u +%Y)"; fi if [ ! -d "${HOME}/.history/$(date -u +%Y/%m)" ]; then mkdir "${HOME}/.history/$(date -u +%Y/%m)"; fi export HISTFILE="${HOME}/.history/$(date -u +%Y/%m/%d.%H.%M.%S)_${HOSTNAME}_$$" -
adamkdean created this gist
Sep 3, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ # Organise your bash history, thanks to: # https://twitter.com/michaelhoffman/status/639178145673932800 if [ ! -d "${HOME}/.history/$(date -u +%Y)" ]; then mkdir "${HOME}/.history/$(date -u +%Y)"; fi if [ ! -d "${HOME}/.history/$(date -u +%Y/%m)" ]; then mkdir "${HOME}/.history/$(date -u +%Y/%m)"; $ export HISTFILE="${HOME}/.history/$(date -u +%Y/%m/%d.%H.%M.%S)_${HOSTNAME}_$$"