Last active
December 24, 2020 17:01
Revisions
-
MarkWalters-dev revised this gist
Dec 24, 2020 . 1 changed file with 3 additions 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,2 +1,4 @@ export BASHLOG=$HOME/.local/share/bashlog [ -e "$BASHLOG" ] || mkdir -p $BASHLOG [ -n "$TERM_SESSION_ID" ] || export TERM_SESSION_ID="$(uuidgen)" export PROMPT_COMMAND='echo "$(printf "%(%F.%H:%M:%S)T\n") $TERM_SESSION_ID $PWD $(history 1)" >> $BASHLOG/$(printf "%(%F)T\n").log' -
MarkWalters-dev revised this gist
Dec 24, 2020 . 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,2 +1,2 @@ [ -n "$TERM_SESSION_ID" ] || export TERM_SESSION_ID="$(uuidgen)" export PROMPT_COMMAND='echo "$(printf "%(%F.%H:%M:%S)T\n") $TERM_SESSION_ID $PWD $(history 1)" >> $HOME/.local/share/bashlog/$(printf "%(%F)T\n").log' -
MarkWalters-dev created this gist
Dec 24, 2020 .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,2 @@ [ -n "$TERM_SESSION_ID" ] || export TERM_SESSION_ID="$(uuidgen)" export PROMPT_COMMAND='echo "$(printf "%(%F.%H:%M:%S)T\n") $TERM_SESSION_ID $PWD $(history 1)" >> $HOME/.logs/bash-history-$(printf "%(%F)T\n").log'