Skip to content

Commit 03f685a

Browse files
laurigatesclaude
andauthored
chore(zsh): keep ollama models warm and complete claude import (#383)
## 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`. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 4a7af58 commit 03f685a

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

dot_zfunc/_claude

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ _claude() {
1515
'auto-mode:Inspect or reset auto mode classifier'
1616
'doctor:Check the health of your Claude Code'
1717
'gateway:Run the enterprise auth/telemetry'
18+
'import:Import config from another AI coding'
1819
'install:Install Claude Code native build. Use'
1920
'mcp:Configure and manage MCP servers'
2021
'plugin|plugins:Manage Claude Code plugins'
@@ -107,6 +108,7 @@ _claude_config() {
107108
'auto-mode:Inspect or reset auto mode classifier'
108109
'doctor:Check the health of your Claude Code'
109110
'gateway:Run the enterprise auth/telemetry'
111+
'import:Import config from another AI coding'
110112
'install:Install Claude Code native build. Use'
111113
'mcp:Configure and manage MCP servers'
112114
'plugin|plugins:Manage Claude Code plugins'

dot_zshenv.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ export PATH
1515

1616
source ~/.api_tokens
1717

18+
export OLLAMA_KEEP_ALIVE=30m
19+
1820
{{- if and (eq .chezmoi.os "linux") (.chezmoi.kernel.osrelease | contains "truenas") }}
1921
# TrueNAS: /tmp is mounted noexec, breaking chezmoi's run_* scripts.
2022
# Redirect TMPDIR to an exec-allowed dataset.

0 commit comments

Comments
 (0)