Skip to content

Instantly share code, notes, and snippets.

@laginha87
Last active August 29, 2015 14:01
Show Gist options
  • Save laginha87/d3f81d5545ff4bde1388 to your computer and use it in GitHub Desktop.
Save laginha87/d3f81d5545ff4bde1388 to your computer and use it in GitHub Desktop.
quick zsh script for writing daily logs
function log_write() { echo "$(date +%H:%M:%S) $*" >> ~/work_logs/$(date +%d-%m-%y) }
function log_see() { atom ~/work_logs/$(date +%d-%m-%y) }
function log_peek() { tail ~/work_logs/$(date +%d-%m-%y)}
alias log_arrived=' log_write arrived'
alias log_left=' log_write left'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment