zsh: save history and initialise completion #259

Merged
mesh-admin merged 1 commits from fix/zsh-completion-and-history into main 2026-10-04 09:33:29 +00:00
Contributor

Found reviewing the shell on g14 (hq to-be 41):

  • No history was kept. zsh's defaults are SAVEHIST=0 and HISTSIZE=30, and there is no history file. The block now keeps 100k entries in ~/.zsh_history, shared between open shells.
  • Completion was never initialised. Nothing ran compinit, so only basic completion worked. The block now runs compinit with its cache in ~/.cache/zsh, and turns on menu selection.

Checked: zsh -n on the block; in a scratch home, 1715 completions load and history is set; module check passes all 74 manifests; zsh tests 16/16.

Found reviewing the shell on g14 (hq to-be 41): - **No history was kept.** zsh's defaults are `SAVEHIST=0` and `HISTSIZE=30`, and there is no history file. The block now keeps 100k entries in `~/.zsh_history`, shared between open shells. - **Completion was never initialised.** Nothing ran `compinit`, so only basic completion worked. The block now runs `compinit` with its cache in `~/.cache/zsh`, and turns on menu selection. Checked: `zsh -n` on the block; in a scratch home, 1715 completions load and history is set; `module check` passes all 74 manifests; zsh tests 16/16.
mesh-admin added 1 commit 2026-10-04 09:33:25 +00:00
zsh saves no history by default (SAVEHIST=0) and nothing called compinit, so
every machine had 30 lines of unsaved history and only basic completion.
Found reviewing the shell on its first machine (hq to-be 41).
mesh-admin merged commit ca5ab288f6 into main 2026-10-04 09:33:29 +00:00
mesh-admin deleted branch fix/zsh-completion-and-history 2026-10-04 09:33:29 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: novox/mesh-catalog#259