Files
oh-my-zsh/plugins/ollama

Ollama

This plugin adds completion for Ollama, the tool for running large language models locally.

To use it, add ollama to the plugins array in your zshrc file:

plugins=(... ollama)

It completes ollama subcommands, their flags, and model names (from ollama list, or ollama ps for ollama stop).

Credits

Adapted from Grégoire Compagnon's gist by Konstantin Gredeskoul.