Skip to content

Instantly share code, notes, and snippets.

@D00MFist
Created February 21, 2020 20:18
Show Gist options
  • Save D00MFist/e9ee54594c655fdfeb516bf22e5557a3 to your computer and use it in GitHub Desktop.
Save D00MFist/e9ee54594c655fdfeb516bf22e5557a3 to your computer and use it in GitHub Desktop.
PS1='[`date +"%d-%b-%y %T"`] > '
test "$(ps -ocommand= -p $PPID | awk '{print $1}')" == 'script' || (script -f $HOME/logs/$(date +"%d-%b-%y_%H-%M-%S")_shell.log)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment