diff --git a/teller.zsh b/teller.zsh index 0a2e857..98bca74 100644 --- a/teller.zsh +++ b/teller.zsh @@ -8,7 +8,7 @@ fi # Fetch the fortune message if [[ "$1" == "samantha-mode" ]]; then - if ! ollama ls &>/dev/null; then + if ! command -v ollama &>/dev/null; then echo "Error: You can not use Samantha Mode because you are missing Ollama." fi FORTUNE="$(ollama run sparksammy/tinysam-l3.2:latest \"Please generate a pretend quote. It should be on a random topic, not just code. Show only the quote.\")"