This gist includes:
ollama-cli.ps1: Run a single prompt with a local model (likegemini-cli -p)ollama-chain.ps1: Chain multiple files or prompts into one request- PowerShell profile function
ollama-pfor quick terminal use - Instructions to install
.ggufmodels manually into Ollama
- Install Ollama
- Create a
Modelfileand build your model:ollama create gemma-local -f Modelfile
🧪 Usage 3. Add ollama-p to your PowerShell profile ($PROFILE)
ollama-p "Write a haiku" -Time
ollama-p .\prompt.txt -Model "gemma-local"
.\ollama-chain.ps1 intro.txt chapter1.txt -Time
Use Get-Help .\ollama-cli.ps1 or Get-Help .\ollama-chain.ps1 for inline help.