Skip to content '"` </textarea></xmp> All gists Back to GitHub Sign in Sign up Instantly share code, notes, and snippets. colby / Time tracking bash function Last active Aug 29, 2015 Star 0 Fork 2 Code Revisions 2 Forks 2 Embed What would you like to do? Embed Embed this gist in your website. Share Copy sharable link for this gist. Clone via HTTPS Clone with Git or checkout with SVN using the repository’s web address. Learn more about clone URLs Download ZIP A simple function for your bashrc to track time into a dotfile. Raw Time tracking bash function now() { $file="$HOME/.now" if [[ -z $@ ]]; then today="$(date "+%Y-%m-%d")" grep --color=never $today $file | cut -d' ' -f2- else stamp="$(date "+%Y-...