Add SZ_NOMUX identification

This commit is contained in:
Lockszmith (@crater) 2025-03-12 17:59:18 +00:00
parent 343537ff5e
commit 1633cf2732
3 changed files with 14 additions and 1 deletions

View file

@ -0,0 +1,8 @@
#!/usr/bin/env -S zsh -c 'echo "Not a user script. source(aka .) only"'
BASE_SHELL=${BASE_SHELL:-${SHELL##*/}}
SZ_NOMUX=0
[ $SZ_NOMUX -eq 1 ] || [ "$TERM_PROGRAM" != 'vscode' ] || SZ_NOMUX=1
[ $SZ_NOMUX -eq 1 ] || [ -n "${VSCODE_PROFILE_INITIALIZED}" ] || SZ_NOMUX=1