fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
d62fb9cc7
master
1function __fish_ollama_list 2ollama list2> /dev/null| tail -n+2 | string replace --regex"\s.*" "" 3end 4 5function __fish_ollama_ps 6ollama ps2> /dev/null| tail -n+2 | string replace --regex"\s.*" "" 7end 8 9complete -f -c ollama 10complete -c ollama -n __fish_use_subcommand -a serve -d"Start ollama" 11complete -c ollama -n __fish_use_subcommand -a create -d"Create a model from a Modelfile" 12complete -c ollama -n __fish_use_subcommand -a show -d"Show information for a model" 13complete -c ollama -n __fish_use_subcommand -a run -d"Run a model" 14complete -c ollama -n __fish_use_subcommand -a stop -d"Stop a running model." 15complete -c ollama -n __fish_use_subcommand -a pull -d"Pull a model from a registry" 16complete -c ollama -n __fish_use_subcommand -a push -d"Push a model to a registry" 17complete -c ollama -n __fish_use_subcommand -a list -d"List models" 18complete -c ollama -n __fish_use_subcommand -a cp -d"Copy a model" 19complete -c ollama -n __fish_use_subcommand -a rm -d"Remove a model" 20complete -c ollama -n __fish_use_subcommand -a help -d"Help about any command" 21complete -c ollama -s h -l help -d"help for ollama" 22complete -c ollama -s v -l version -d"Show version information" 23complete -c ollama -f -a"(__fish_ollama_list)" --condition'__fish_seen_subcommand_from show' 24complete -c ollama -f -a"(__fish_ollama_list)" --condition'__fish_seen_subcommand_from run' 25complete -c ollama -f -a"(__fish_ollama_list)" --condition'__fish_seen_subcommand_from cp' 26complete -c ollama -f -a"(__fish_ollama_list)" --condition'__fish_seen_subcommand_from rm' 27complete -c ollama -f -a"(__fish_ollama_ps)" --condition'__fish_seen_subcommand_from stop'