This function is intended to go into your bash profile. The buz profile function is used for remembering short notes.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Irongeek 7a4c3cbe74 Alter name of source file. 10 months ago
LICENSE Initial commit 10 months ago
README.md First commit on Codeberg 10 months ago
buz.sh Alter name of source file. 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.