|
10 months ago | |
---|---|---|
LICENSE | 10 months ago | |
README.md | 10 months ago | |
buz.sh | 10 months ago |
README.md
buz
This function is intended to go into your bash profile. The buz profile function is used for remembering those one-liners, single commands, or short notes that are helpful to bring up quickly but are easily forgotten when you only need them a few times a year.
buz use
As is here, the function writes a YAML file to my SyncThing directory.With buz, I can type just buz, and the function prints the content of my file, which I could pipe to grep or whatever command I choose. To add more content to my notes, I type:
buz topic and notes about the topic I just typed.
I chose YAML because the syntax allows me to put the topic I am taking notes about at the start of the line and then entries underneath the topic. Within the function, I search to see if the topic already exists; if so, the note is appended under the topic; if it is not found, a new topic and note are created. I end up with a YAML file that looks something like this.
subject1:
-notes on the subject
-more notes on the subject
subject2:
-notes on the subject
-more notes on the subject
-as many notes, as you want on the subject
subject3:
-notes on the subject
Remember, this function is for short notes, nothing detailed. Detailed notes go in my more extensive knowledge base, my wiki.