Skip to content

Instantly share code, notes, and snippets.

@kenmori
Last active June 13, 2022 07:40
Show Gist options
  • Save kenmori/dc03fc6de94b74496bc621bbf53e4f3f to your computer and use it in GitHub Desktop.
Save kenmori/dc03fc6de94b74496bc621bbf53e4f3f to your computer and use it in GitHub Desktop.
How to set VSCodeTerminal as same ITerm2

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

you have to match it to VSC setting.

terminal.integrated.shellArgs.osx can pass argument to shell you want to run command when you open terminal

terminal.integrated.shell.osx is match command on iTerm2 terminal.integrated.shellArgs.osx is match send text at start on iTerm2

write your setting.json on VSCode

Notice that use -c as argument that meaning command.

[
  {
  "some": "some",
  "some": "some",
  "some": "some",
  "terminal.integrated.shell.osx": "/bin/zsh",
  "terminal.integrated.shellArgs.osx": ["-c && source $HOME/.zshrc.pre-oh-my-zsh"]
 }
]
@BoniWPy
Copy link

BoniWPy commented Feb 17, 2020

thanks thats very helped me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment