Skip to content

Instantly share code, notes, and snippets.

@loreguerra
Last active March 8, 2017 00:05
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 loreguerra/c6e6e474c6c58dcdd09396c01b7a59e7 to your computer and use it in GitHub Desktop.
Save loreguerra/c6e6e474c6c58dcdd09396c01b7a59e7 to your computer and use it in GitHub Desktop.
Simple app to log hours via command line
#!/bin/bash
cd ~/Dropbox/time-log/
echo "$1" "$2" >> log.txt
date "+DATE: %m/%d/%y%nTIME: %I:%M:%S%n%n" >> log.txt
#ADD THESE ALIASES TO BASH PROFILE
alias log='~/Dropbox/time-log/log.sh'
alias hours='cat ~/Dropbox/time-log/log.txt'
@loreguerra
Copy link
Author

In command line, from any folder type log PROJECT start (or end) to get a timestamp saved to log file.
To view hours, type hours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment