alias stuff removed

This commit is contained in:
sealad886 2025-01-27 13:08:12 +00:00
parent 7e4b330e98
commit d94d2bf8d1
2 changed files with 4 additions and 11 deletions

View File

@ -60,12 +60,6 @@ The plugin provides autocompletion and enhanced functionality for the following
| `rm` | Remove a model from the local system. |
| `help [command]` | Provide help information for a command. |
### Alias
The plugin includes an alias for convenience:
- `o`: This is an alias for the `ollama` command, allowing you to use `o` as a shorthand for executing Ollama commands. Useful when jumping around the command line frequently.
```sh
>>> o ls
NAME ID SIZE MODIFIED

View File

@ -68,8 +68,10 @@ _ollama() {
# Handle argument completion based on the specified command
case $words[1] in
run|rm|stop|show|pull|push)
# For these commands, provide model name suggestions
_ollama_get_models
# For these commands, provide model name suggestions exactly once
if [[ $CURRENT -eq 2 ]]; then
_ollama_get_models
fi
;;
cp)
if [[ $CURRENT -eq 2 ]]; then
@ -101,6 +103,3 @@ _ollama() {
# Register the '_ollama' function as the completion handler for the 'ollama' command
compdef _ollama ollama
# Register aliases
alias o=ollama