fix: zellij should not be loaded in vscode terminal

This commit is contained in:
Lockszmith (@VAST) 2025-02-25 09:35:23 -05:00
parent 125a023c01
commit 02260030a9
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env -S bash -c 'echo "Not a user script. source(aka .) only"'
if is_cmd load-zellij; then
if is_cmd load-zellij && [ -z "${VSCODE_PROFILE_INITIALIZED}" ]; then
# zellij will need to allow reload of the enviornment
[[ -z "$ZELLIJ_SESSION_NAME" ]] && unset SZ_ENV_LOADED
. <( load-zellij - )