From 226f4438f1999aaab8558ff44ce90cd0a7618845 Mon Sep 17 00:00:00 2001 From: Yuhao Qing Date: Mon, 3 Aug 2026 03:44:03 +0800 Subject: [PATCH] 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 --- .zshrc | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.zshrc b/.zshrc index da29a5d..8ce3e81 100644 --- a/.zshrc +++ b/.zshrc @@ -16,7 +16,13 @@ export ZSH=$HOME/.oh-my-zsh # it'll load a random theme each time that oh-my-zsh is loaded. # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes -ZSH_THEME="powerlevel10k/powerlevel10k" +# Agent/AI terminals (Cursor's agent sets CURSOR_AGENT) get a light, fast theme; +# interactive shells use powerlevel10k. +if [[ -n "$CURSOR_AGENT" ]]; then + ZSH_THEME="robbyrussell" +else + ZSH_THEME="powerlevel10k/powerlevel10k" +fi # Uncomment the following line to use case-sensitive completion. # CASE_SENSITIVE="true" @@ -64,12 +70,13 @@ plugins=( # zsh-completions INSTALL METHOD CHANGED https://github.com/zsh-users/zsh-completions/issues/603 zsh-autosuggestions zsh-syntax-highlighting - # history-substring-search - # systemd - # k - # extract - # sudo + history-substring-search + systemd + k + extract + sudo fzf-tab + poetry # web-search # httpie # git