From 9cd09904a4f8296e0054dd0a86dc4f7a859aa40d Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 13 Oct 2025 23:06:30 +0100 Subject: [PATCH] fix(zshrc): update condition to prevent execution in specific environments --- zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index e5c687f..e2ef82a 100644 --- a/zshrc +++ b/zshrc @@ -14,8 +14,12 @@ # continuously update PATH, # - Anything that sets the `TERM` environment variable to `dumb`. This includes # Cursor's agent setup, which is used when the agent runs terminal commands. +# Though it does also set a proper `TERM` value sometimes, hence the check for +# `CURSOR_AGENT` as well. # -if [[ -n "$VSCODE_RESOLVING_ENVIRONMENT" ]] || [[ "$TERM" == "dumb" ]]; then +if [[ -n "$VSCODE_RESOLVING_ENVIRONMENT" ]] || + [[ "$TERM" == "dumb" ]] || + [[ "$CURSOR_AGENT" == "1" ]]; then return fi