File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change
1
+ function __fish_ollama_list
2
+ ollama list 2> /dev/null | tail -n +2 | string replace --regex " \s.*" " "
3
+ end
4
+
5
+ complete -c ollama -a serve -d " Start ollama"
6
+ complete -c ollama -a create -d " Create a model from a Modelfile"
7
+ complete -c ollama -a show -d " Show information for a model"
8
+ complete -c ollama -a run -d " Run a model"
9
+ complete -c ollama -a pull -d " Pull a model from a registry"
10
+ complete -c ollama -a push -d " Push a model to a registry"
11
+ complete -c ollama -a list -d " List models"
12
+ complete -c ollama -a cp -d " Copy a model"
13
+ complete -c ollama -a rm -d " Remove a model"
14
+ complete -c ollama -a help -d " Help about any command"
15
+ complete -c ollama -s h -l help -d " help for ollama"
16
+ complete -c ollama -s v -l version -d " Show version information"
17
+ complete -c ollama -f -a " (__fish_ollama_list)" --condition ' __fish_seen_subcommand_from show'
18
+ complete -c ollama -f -a " (__fish_ollama_list)" --condition ' __fish_seen_subcommand_from run'
19
+ complete -c ollama -f -a " (__fish_ollama_list)" --condition ' __fish_seen_subcommand_from cp'
20
+ complete -c ollama -f -a " (__fish_ollama_list)" --condition ' __fish_seen_subcommand_from rm'
You can’t perform that action at this time.
0 commit comments