mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
fix: make cmd
local
This commit is contained in:
parent
409da0445d
commit
df6d629b30
|
@ -275,6 +275,7 @@ __vsc_prompt_cmd_original() {
|
|||
__vsc_restore_exit_code "${__vsc_status}"
|
||||
# Evaluate the original PROMPT_COMMAND similarly to how bash would normally
|
||||
# See https://unix.stackexchange.com/a/672843 for technique
|
||||
local cmd
|
||||
for cmd in "${__vsc_original_prompt_command[@]}"; do
|
||||
eval "${cmd:-}"
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue