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:
@@ -9,6 +9,10 @@ export TERM="xterm-256color"
|
|||||||
# If you come from bash you might have to change your $PATH.
|
# If you come from bash you might have to change your $PATH.
|
||||||
# export PATH=$HOME/bin:/usr/local/bin:$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.
|
# Path to your oh-my-zsh installation.
|
||||||
export ZSH=$HOME/.oh-my-zsh
|
export ZSH=$HOME/.oh-my-zsh
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user