Skip to content

Commit df6d629

Browse files
authored
fix: make cmd local
1 parent 409da04 commit df6d629

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vs/workbench/contrib/terminal/browser/media/shellIntegration-bash.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ __vsc_prompt_cmd_original() {
275275
__vsc_restore_exit_code "${__vsc_status}"
276276
# Evaluate the original PROMPT_COMMAND similarly to how bash would normally
277277
# See https://unix.stackexchange.com/a/672843 for technique
278+
local cmd
278279
for cmd in "${__vsc_original_prompt_command[@]}"; do
279280
eval "${cmd:-}"
280281
done

0 commit comments

Comments
 (0)