Quick and simple personal note system written in a single bash script.
Made to take random, small notes in Linux using a terminal. No idea how it'd work anywhere else.
- Pick and search notes using fzf.
- Create, delete and rename notes.
- Edit in your terminal editor of choice.
Not my idea, see Acknowledgments
- bash
- fzf
- a terminal editor of some kind
- bat (optional, nicer previews)
If you already know how to add a bash script to your PATH, skip to configuration.
- Get the
notesscript by downloading or cloning this repository. - Include the script in your PATH.
- If you don't know how PATH works, just put
notesin$HOME/.local/bin - Might need to add
PATH=$HOME/.local/bin:$PATHto your initialization scripts (e.g. put it at the end of your.bashrc)
- Make sure the script is executable.
chmod +x <path-to-notes-script>
You can use it as-is, but if you want to change something, edit the variables near the top of the script or define the following environment variables:
BNOTES_EXT: extension used when making new note filesBNOTES_NEW: name of the option for creating a new noteBNOTES_DEL: name of the option for deleting a noteBNOTES_MOV: name of the option for renaming a noteBNOTES_BIN: absolute path or name of binary to edit notes with
If $BNOTES_BIN is not set, $EDITOR will be used. If $EDITOR is not set, $VISUAL will be used.
Run the script in a terminal (type notes & enter).
Write some notes.
Idea taken from Casey Brant's Simple Notes Taking with fzf and vim.
Some more ideas taken from elsewhere but I can't find it right now.
There are so many. Folks seem to love taking notes :^)
Interestingly, while searching for Brant's blog again post I found alichtman/fzf-notes. Lichtman's version supports notebooks, along with other nifty features.