Commit Graph
8 Commits
Author SHA1 Message Date
Yuhao Qing d5afd25bbe perf(pyenv): initialize shell integration once without rehash
Login shells source the fragment twice to restore shim precedence after the system profile. Reapplying PATH does not require repeating shell integration or rebuilding shims.
2026-09-08 00:41:08 +08:00
Yuhao QingandCursor 3fbf8b2350 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>
2026-08-03 03:58:06 +08:00
Yuhao QingandCursor 226f4438f1 feat(shell): enable more plugins and give agent shells a light theme
Uncomment history-substring-search, systemd, k, extract, and sudo, and add
poetry to the default plugin list; all are installed via the bundled or custom
plugin dirs. Switch to robbyrussell when CURSOR_AGENT is set so Cursor's agent
terminal skips powerlevel10k, keeping interactive shells on p10k.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 03:44:03 +08:00
Yuhao QingandCursor 12108ca3e4 fix(shell): guard brew shellenv against TCC and keep eza aliases
.zshenv runs brew shellenv for every zsh, including non-interactive and
GUI-launched shells; without a safe CWD the eval fails or triggers a
permission prompt when launched from a TCC-protected directory such as
~/Documents. Run it from /tmp.

The eza `l` alias (and the myip/e/ip/a/aa group) was defined before
oh-my-zsh loaded, so lib/directories.zsh overrode `l` back to ls. Move
the alias block after the oh-my-zsh source so the eza versions win.

Also document the ~/.config/zshrc personal-config mechanism and patch.sh
in the README, which previously only had a title.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 02:22:18 +08:00
Yuhao Qing 9641876d43 Add a new option 2025-12-18 18:10:03 +08:00
Yuhao Qing d8238c545a fix 2025-12-18 18:07:17 +08:00
Yuhao Qing 76549f5438 merlin zsh compatible 2025-12-18 17:42:46 +08:00
Yuhao Qing a7dcd7c271 Stage prep_env.sh 2025-12-18 17:42:20 +08:00