Skip to content

Instantly share code, notes, and snippets.

@adamkdean
Last active September 3, 2015 14:16
Show Gist options
  • Save adamkdean/021e13025f83904b1bb6 to your computer and use it in GitHub Desktop.
Save adamkdean/021e13025f83904b1bb6 to your computer and use it in GitHub Desktop.

Revisions

  1. adamkdean revised this gist Sep 3, 2015. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions .bashrc
    Original 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
    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
    mkdir -p "${HOME}/.history/$(date -u +%Y/%m)"
    export HISTFILE="${HOME}/.history/$(date -u +%Y/%m/%d.%H.%M.%S)_${HOSTNAME}_$$"
  2. adamkdean revised this gist Sep 3, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .bashrc
    Original 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)"; $
    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}_$$"
  3. adamkdean created this gist Sep 3, 2015.
    5 changes: 5 additions & 0 deletions .bashrc
    Original 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}_$$"