Personal BASH scripts for productivity
| .husky | ||
| .gitignore | ||
| ai-coder.sh | ||
| ai-translate.sh | ||
| ai.sh | ||
| ayo.sh | ||
| cozy.sh | ||
| display.sh | ||
| example.conf | ||
| expose-ollama.md | ||
| functions.sh | ||
| git.sh | ||
| journal.sh | ||
| mail.sh | ||
| notes.sh | ||
| ollama-install.sh | ||
| package.json | ||
| pnpm-lock.yaml | ||
| README.md | ||
| tasks.sh | ||
| tts.sh | ||
| up.sh | ||
Ayo's Scripts
Personal BASH scripts for productivity
Setup
1. Clone repo
# By default this should be inside ~/Projects/ directory
# otherwise, you have to update the config in the next step
$ git clone git@git.sr.ht:~ayoayco/scripts
$ cd scripts
2. Copy config (and update values as needed!)
$ cp example.conf ~/ayo.conf
3. Install some dependencies
- Typora - used as an alternative editor for notes (using flag
-t) timeout- install on mac via coreutils:brew install coreutilsollama- running a locall LLM via ollama. See installation on linux
4. update your .bashrc to add an alias for the parent command scripts/ayo.sh
Examples
To ask the AI a question
ayo ai "Why is the sky blue?"
I also set a shortcut alias to ayo with yo because I'm lazy
yo ai "But why is the sky orange on sunrise / sunset?"
If I want to use the journal script, I can use the shortcut j. The following will create a new file for the current day if it doesn't exist yet, otherwise it open an editor to the existing entry
yo j
Features
- Create journal entry for the day, or edit if it already exists
- Access
ollamaLLM with ease - Operating System stuff like, update packages, adjust display to some preferences, etc.
Scripts
- ayo - parent command, lists all available scripts or accepts parameters
- journal (j) - creates a new journal entry if it doesn’t exist yet; opens on editor
- append (ja) - append one thought at the end of the day's entry
- notes - notes management
- git (g) - args can be list of files to commit & push
- stat (gs) - git status
- push (gp) - git push
Planned
- blog - tools for blogging (eg, bn - generate blog from a note)
- config - create configuration for variables (eg, editor, locations)
Just keep scripting. :) A project by Ayo