Speed up shell startup: remove duplicate compinit, lazy-load pyenv/nvm

- Remove manual compinit in .zshrc (oh-my-zsh already handles it),
  eliminating a redundant ~350ms call
- Lazy-load pyenv init (~710ms) until first use, matching the existing
  kubectl lazy-load pattern
- Lazy-load nvm init for when it gets installed in the future
This commit is contained in:
Viktor Barzin 2026-02-15 18:31:04 +00:00
parent e284e4623b
commit 8db9aa926d
3 changed files with 17 additions and 15 deletions

View file

@ -1,13 +1,3 @@
# ============================================================================
# Fast compinit - cache completions, regenerate once daily
# ============================================================================
autoload -Uz compinit
if [[ -n ${ZDOTDIR:-$HOME}/.zcompdump(#qN.mh+24) ]]; then
compinit
else
compinit -C
fi
# ~/.zshrc - Zsh configuration for interactive shells
# Customizations are in ~/.oh-my-zsh/custom/*.zsh (auto-loaded)