HISTSIZE is interactive-only, so .zshenv is wrong — it runs for every shell, scripts included. It belongs in .zshrc; several files can set the value you see.
| |
Oh My Zsh keeps history settings in ~/.oh-my-zsh/lib/history.zsh, defaults above the 1000 that usually prompts the question; system-wide values come from /etc/zshrc, /etc/zprofile or /etc/zshenv.
Value and origin:
| |
Change it in .zshrc, then source ~/.zshrc:
| |
compinstall filename style
| |
The interactive text setup for zsh completion: tells compinstall where to write results; without it compinstall asks each time, with it fixed and dotfiles-friendly.
It does nothing alone — only if compinstall is run, and writes completion configuration only: autoload -Uz compinit, compinit, completion zstyle rules and related options. History, aliases, keybindings and PATH are untouched.
Keep completion configuration out of .zshrc: point the style elsewhere and source the result:
| |
| |
| |