-
-
Save SnacksOnAPlane/3d8541518e02eb7e6fa99e42cd20bd17 to your computer and use it in GitHub Desktop.
Did function - record stuff you did when you do it
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
did () { | |
local note="$HOME/Dropbox/CallRail/did.md" | |
if [ ! -z "$1" ] | |
then | |
date >> $note | |
echo "$@" >> $note | |
echo "" >> $note | |
else | |
vim + -c ':r! gdate +\#\#\#\ \%Y-\%m-\%d\ \%H:\%M && echo' +star $note | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment