[ZSH] Faster startup: instant prompt, single compinit, cached probes

Re-enable p10k instant prompt (sudo-key ssh-add moved above it). Drop
oh-my-zsh.sh (second compinit, update check); set up what OMZ plugins
need ourselves. Cache java_home, go env, fzf --zsh output. Disable the
kubecontext segment (ran kubectl per shell). Log starts over 1 s to
~/.cache/zsh/startup-slow.log to catch cold-start stalls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Fabian IsingandClaude Opus 5.5 committed 2026-10-14 10:53:36 +02:00
1 parent 604c1c6538
commit 74d1d60845
6 files changed
+150 -59

No files matched your search

+3 -1
View File
@@ -1,6 +1,8 @@
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export JAVA_HOME=`/usr/libexec/java_home`
# deps: system/user JDK dirs, which change when a JDK is added or removed
_zsh_cached java_home /Library/Java/JavaVirtualMachines ~/Library/Java/JavaVirtualMachines \
-- /usr/libexec/java_home && read -r JAVA_HOME < $REPLY && export JAVA_HOME
# macOS resets this on updates (and at random); background it, it's slow
defaults write .GlobalPreferences AppleLocale en_DE &!