[PR #11832] feat(cmd): add support for auto-completions #13630

Open
opened 2026-04-13 00:31:37 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/ollama/ollama/pull/11832

State: open
Merged: No


This enables tab completions for bash, zsh, fish and powershell. It takes into consideration the number of arguments each command expects and also filters the models based on the command. It also filters out models if they have already been specified in the leading arguments. It also disables file completions on commands like pull and serve. Finally, it makes the completion suggestion work even if the binary name used isn't ollama. This should help us use it even while developing.

**Original Pull Request:** https://github.com/ollama/ollama/pull/11832 **State:** open **Merged:** No --- This enables tab completions for bash, zsh, fish and powershell. It takes into consideration the number of arguments each command expects and also filters the models based on the command. It also filters out models if they have already been specified in the leading arguments. It also disables file completions on commands like pull and serve. Finally, it makes the completion suggestion work even if the binary name used isn't `ollama`. This should help us use it even while developing.
GiteaMirror added the pull-request label 2026-04-13 00:31:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#13630