Skip to content

Instantly share code, notes, and snippets.

@linuxsable
Created December 6, 2012 21:53
Show Gist options
  • Select an option

  • Save linuxsable/4228843 to your computer and use it in GitHub Desktop.

Select an option

Save linuxsable/4228843 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