TermNotes
A simple notes application for bash made by Michael C. Clayton
Usage
Run TermNotes from the command line as you would any other shell script.
./TermNotes.sh
TermNotes creates a hidden text file: ~/.notes
Running without any arguments will result in TermNotes printing out it's usage.
Arguments
-s Shows all the notes you have created.
-a Appends the note, passed as the last argument, to the note list.
Ex: `./TermNotes.sh -a "Don't forget milk."`
-c Clears the nth note. Where n is an integer passed as the second argument. If the second argument equals "all", then all the notes will be cleared.
Ex: `./TermNotes.sh -c all`
Notes have been cleared.
Ex: `./TermNotes.sh -c 1`
Cleared Note:
+ Don't forget milk.
Bashrc fun!
For some real fun, add the following to your .bashrc file.
# Create TermNotes aliases
alias shownotes='~/./TermNotes.sh -s'
alias note='~/./TermNotes.sh -a'
alias clearnote='~/./TermNotes.sh -c'
# Show the notes you have left yourself each interactive invocation of bash
shownotes
- Important! Make sure to place TermNotes.sh in the same directory as your bashrc or change the aliases to point to the correct file path where TermNotes resides.
What does this do?
This will now allow you to:
-
Use the command
shownotes
to print out all of the notes you have created. -
Use the command
note
, followed by your note, to append it to the note list.Ex: note "Don't forget milk."
-
Use the command
clearnote
to clear the nth note. Where n is an integer passed as the argument. If the argument equals "all", then all the notes will be cleared.Ex:
clearnote all
Notes have been cleared.
Ex:
clearnote 1
Cleared Note: + Don't forget milk.
-
Most importantly, it will print out your note list each time you open up your terminal!