mirror of
https://github.com/Microsoft/vscode
synced 2024-09-19 18:48:00 +00:00
Merge pull request #157697 from microsoft/143769
Send IsWindows when running bash shell integration on Windows
This commit is contained in:
commit
a5abda784d
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue