Skip to content

Instantly share code, notes, and snippets.

@linuxsable
Last active December 16, 2015 14:39
Show Gist options
  • Save linuxsable/5450120 to your computer and use it in GitHub Desktop.
Save linuxsable/5450120 to your computer and use it in GitHub Desktop.
export PROMPT_COMMAND=’if [ “$(id -u)” -ne 0 ]; then echo “`date` `pwd` `history 1`” » ~/.bash_log; fi’
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment