Skip to content

chore(zsh): keep ollama models warm and complete claude import - #383

Merged
laurigates merged 1 commit into
mainfrom
chore/zsh-env-and-claude-completion
Aug 21, 2026
Merged

chore(zsh): keep ollama models warm and complete claude import#383
laurigates merged 1 commit into
mainfrom
chore/zsh-env-and-claude-completion

Conversation

@laurigates

Copy link
Copy Markdown
Owner

What

Two unrelated-to-each-other but equally small zsh config tweaks, grouped as one chore.

Why

OLLAMA_KEEP_ALIVE=30m — Ollama unloads a model from memory 5 minutes after its last request by default. For interactive use that means a model re-read from disk on almost every return to the terminal. 30m keeps it resident across a normal working rhythm.

claude import completion — the _claude completion file did not list the import subcommand, so it did not complete. Added to both the top-level command list and the claude config list, matching how the other subcommands are registered in both positions.

How

Two two-line additions. zsh -n passes on the rendered ~/.zshenv.

- OLLAMA_KEEP_ALIVE=30m in .zshenv, so a loaded model stays resident between
  prompts instead of being evicted after the default 5m and re-read from disk
  on the next call.
- Add the `import` subcommand (import config from another AI coding tool) to
  the _claude completion, in both the top-level and `claude config` command
  lists so it completes in both positions.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PPT64ByhPz27jQDUUnvUFU
@laurigates
laurigates merged commit 03f685a into main Aug 21, 2026
9 checks passed
@laurigates
laurigates deleted the chore/zsh-env-and-claude-completion branch August 21, 2026 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant