Created
October 2, 2017 21:48
-
-
Save nestoralonso/2095c0d9f6e837fd4b2799522e28f40e to your computer and use it in GitHub Desktop.
Take notes on bash (add to .bashrc)
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
#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