Skip to content

Instantly share code, notes, and snippets.

View ayoubelouardi's full-sized avatar

Ayoub El Ouardi ayoubelouardi

View GitHub Profile
#!/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
@ayoubelouardi
ayoubelouardi / ollama_completions.bash
Last active April 30, 2026 02:09
ollama bash completion version 0.18.2
_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"