My zsh aliases for working with Ollama. This is intended for macos.
It reads the model name from a file, because my LLM preferences are a lot more volatile than the lifetime of my terminal windows.
First, get ollama:
brew install ollama
Copy .zshrc
and add it to your ~/.zshrc
:
pbpaste >> ~/.zshrc
Make the ~/.default-model
file:
echo 'qwen2.5' > ~/.default-model
Standard usage. Prompt the default model.
Same as oll
but answer succinctly.
❯ ols "What's the builder tool for node.js that is a packager"
webpack
Ask a question about whatever is on your clipboard. I typically use it in combination with pbcopy
, like:
❯ ls -lathr /Volumes | pbcopy
❯ olp "When did I plug in the external HD?"