Skip to content

Instantly share code, notes, and snippets.

@yaasita
Created April 3, 2014 04:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaasita/9948279 to your computer and use it in GitHub Desktop.
Save yaasita/9948279 to your computer and use it in GitHub Desktop.
auto_make_script_log.sh
if [ "$SHLVL" = "1" ] && [ ! -z "$PS1" ] ; then
[ -d ~/oplog/ ] || mkdir ~/oplog
find ~/oplog/ -type f -mtime +60 -delete
script ~/oplog/"typescript_$(date '+%Y%M_%H:%M:%S')"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment