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 ollamaCopy .zshrc and add it to your ~/.zshrc:
pbpaste >> ~/.zshrcMake the ~/.default-model file:
echo 'qwen2.5' > ~/.default-modelStandard usage. Prompt the default model.
Same as oll but answer succinctly.
❯ ols "What's the builder tool for node.js that is a packager"
webpackAsk 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?"