fix(zshrc): update condition to prevent execution in specific environments

This commit is contained in:
Jim Myhrberg
2025-10-13 23:06:30 +01:00
parent ebf9c4455c
commit 9cd09904a4

6
zshrc
View File

@@ -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