Skip to content

Instantly share code, notes, and snippets.

@nestoralonso
Created October 2, 2017 21:48
Show Gist options
  • Save nestoralonso/2095c0d9f6e837fd4b2799522e28f40e to your computer and use it in GitHub Desktop.
Save nestoralonso/2095c0d9f6e837fd4b2799522e28f40e to your computer and use it in GitHub Desktop.
Take notes on bash (add to .bashrc)
#Taken from https://dev.to/ricardomol/note-taking-from-the-command-line-156
note() {
if [ ! -z "$1" ]; then
echo $(date +"%Y%m%d-%H%M%S") $@ >> $HOME/notes/TempNotes.wiki
else
echo $(date +"%Y%m%d-%H%M%S") "$(cat)" >> $HOME/notes/TempNotes.wiki
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment