This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| if ! command -v apt-get >/dev/null 2>&1; then | |
| echo "This script requires apt-get." >&2 | |
| exit 1 | |
| fi | |
| sudo apt update | |
| sudo apt upgrade -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _ollama() { | |
| local cur prev cmd opts commands integrations | |
| local models | |
| COMPREPLY=() | |
| cur="${COMP_WORDS[COMP_CWORD]}" | |
| prev="${COMP_WORDS[COMP_CWORD-1]}" | |
| cmd="${COMP_WORDS[1]}" | |
| commands="serve start create show run stop pull push signin signout list ls ps cp rm launch help" |