When you lanch terminal on VSCode. you would want the terminal to initialize as same iTerm2.
here is how to set on the setting.json at VSCode.
see your current setting on iTerm
you can see command
and send text at start
on iTerm2 -> Prefernance -> Profile