perf(shell): skip oh-my-zsh completion security audit

Set ZSH_DISABLE_COMPFIX=true so oh-my-zsh runs compinit -u instead of -i,
skipping the per-startup compaudit security scan. The completion directories
are machine-owned and not group/world-writable, so the audit only costs time.
Combined with deferring pyenv init in ~/.config/zshrc/pyenv.zsh, this cuts
interactive startup from ~258ms to ~211ms and agent shells from ~226ms to
~183ms.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Yuhao Qing
2026-08-03 03:58:06 +08:00
co-authored by Cursor
parent 226f4438f1
commit 3fbf8b2350
+4
View File
@@ -9,6 +9,10 @@ export TERM="xterm-256color"
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Skip oh-my-zsh's completion security audit (compaudit). The completion dirs are
# machine-owned and not group/world-writable, so the per-startup audit only costs time.
export ZSH_DISABLE_COMPFIX=true
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh