From 3fbf8b2350a43c0ab360b4b1aec65b1284b3ea0f Mon Sep 17 00:00:00 2001 From: Yuhao Qing Date: Mon, 3 Aug 2026 03:58:06 +0800 Subject: [PATCH] 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 --- .zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.zshrc b/.zshrc index 8ce3e81..9110086 100644 --- a/.zshrc +++ b/.zshrc @@ -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