mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
fix(zshrc): update condition to prevent execution in specific environments
This commit is contained in:
6
zshrc
6
zshrc
@@ -14,8 +14,12 @@
|
|||||||
# continuously update PATH,
|
# continuously update PATH,
|
||||||
# - Anything that sets the `TERM` environment variable to `dumb`. This includes
|
# - Anything that sets the `TERM` environment variable to `dumb`. This includes
|
||||||
# Cursor's agent setup, which is used when the agent runs terminal commands.
|
# 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
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user