Created
July 16, 2018 17:50
-
-
Save chadlavi/15fd674162ccbd2f4765bd76f3321f13 to your computer and use it in GitHub Desktop.
add me to your bash_functions
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
note () { | |
local note="$HOME/notes.md" | |
if [ ! -z "$1" ] | |
then | |
gdate +###\ %Y-%m-%d\ %H:%M >> $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
What is star?