How to update visual studio code’s default terminal shell from bash to zsh
Visual studio code always uses the default bash terminal which can be, in my case for example, a little boring. To fully follow this post, you need to have zsh, oh-my-zsh and visual studio code installed. You can look at my post here to learn how to install them.To Change the default terminal on vscode, follow the listed steps:
- Launch visual studio code and go to settings.
- In settings, click on the features dropdown and then on Terminal
3. Click on edit in settings.json and add this line of code to the user settings json file
"terminal.integrated.shell.osx": "/bin/zsh"
The path for zsh might be different on your computer, be sure to use the correct path.
This command overrides the default setting.
Close the window and re-launch visual studio code.
Start using your customised and preferred terminal shell.