Skip to content

Instantly share code, notes, and snippets.

@chadlavi
Created Jul 16, 2018
Embed
What would you like to do?
add me to your bash_functions
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
}
@theptrk

This comment has been minimized.

Copy link

@theptrk theptrk commented Jul 17, 2018

What is star?

@godDLL

This comment has been minimized.

Copy link

@godDLL godDLL commented Sep 19, 2018

+star will put you in INSERT mode

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