Easily add new and read back old notes on the CLI.
- Clone repository locally.
- Make the
note
script executable and add its location to path. - Create a new directory to house all of your notes, e.g
~/.notes/
mkdir ~/.notes/
- Export the notes directory to your
bashrc
asNOTES_DIR
environment variable.
# .bashrc
export NOTES_DIR=~/.notes/
- Run
note
to see the help menu. - You can sync your notes across multiple computers using git with a remote repository (e.g on GitHub) for free.
# Initializing git repo
cd $NOTES_DIR
git init
git remote add origin <remote git repo url>
# Pushing new notes to origin
cd $NOTES_DIR
git add -u
git commit -m "Added notes about <topic 1>, <topic 2>, ..."
git push
# Syncing notes
cd $NOTES_DIR
git pull