File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/vs/workbench/contrib/terminal/browser/media Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,8 @@ __vsc_escape_value() {
143
143
}
144
144
145
145
# Send the IsWindows property if the environment looks like Windows
146
- if [[ " $( uname -s) " =~ ^CYGWIN* | MINGW* | MSYS* ]]; then
146
+ __vsc_regex_environment=" ^CYGWIN*|MINGW*|MSYS*"
147
+ if [[ " $( uname -s) " =~ $__vsc_regex_environment ]]; then
147
148
builtin printf ' \e]633;P;IsWindows=True\a'
148
149
__vsc_is_windows=1
149
150
else
152
153
153
154
# Allow verifying $BASH_COMMAND doesn't have aliases resolved via history when the right HISTCONTROL
154
155
# configuration is used
155
- if [[ " $HISTCONTROL " =~ .* (erasedups| ignoreboth| ignoredups).* ]]; then
156
+ __vsc_regex_histcontrol=" .*(erasedups|ignoreboth|ignoredups).*"
157
+ if [[ " $HISTCONTROL " =~ $__vsc_regex_histcontrol ]]; then
156
158
__vsc_history_verify=0
157
159
else
158
160
__vsc_history_verify=1
159
161
fi
160
162
163
+ builtin unset __vsc_regex_environment
164
+ builtin unset __vsc_regex_histcontrol
165
+
161
166
__vsc_initialized=0
162
167
__vsc_original_PS1=" $PS1 "
163
168
__vsc_original_PS2=" $PS2 "
You can’t perform that action at this time.
0 commit comments