Merge pull request #157697 from microsoft/143769

Send IsWindows when running bash shell integration on Windows
This commit is contained in:
Daniel Imms 2022-08-09 12:04:16 -07:00 committed by GitHub
commit a5abda784d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,6 +37,11 @@ if [ -z "$VSCODE_SHELL_INTEGRATION" ]; then
builtin return
fi
# Send the IsWindows property if the environment looks like Windows
if [[ "$(uname -s)" =~ ^CYGWIN*|MINGW*|MSYS* ]]; then
builtin printf "\x1b]633;P;IsWindows=True\x07"
fi
__vsc_initialized=0
__vsc_original_PS1="$PS1"
__vsc_original_PS2="$PS2"