A simple function for your bashrc to track time into a dotfile.

Sign up for a GitHub account Sign in Discover Gists public colby / Time tracking bash function Last active 2014-03-19 A simple function for your bashrc to track time into a dotfile. Gist Detail Revisions 2 Forks 1 Download Gist Clone this gist Embed this gist Link to this gist Time tracking bash function File suppressed. Click to show. 1 2 3 4 5 6 7 8 9 10 now() { $file="$HOME/.now" if [[ -z $@ ]]; then today="$(date "+%Y-%m-%d")" grep --color=never $today $file | cut -d' ' -f2- else stamp="$(date "+%Y-%m-%d %H:%M:%S")" echo $stamp - "$@" >> $file fi } Please sign in to comment on this gist. Something went wrong with that request. Please try again. Served fresh by github-fe103-cp1-prd.iad.github.net © 2014 GitHub Inc. All rights reserved. The GitHub Bl...

Linked on 2014-03-19 19:24:52 | Similar Links