Liuuil
Liuuil

Reputation: 1579

zsh doesn't work in the vscode built-in terminal

echo $SHELL

logged: /bin/zsh

why the built-in shell is still bash

what should I config vscode the to make the zsh works in the built-in terminal?

Upvotes: 3

Views: 8720

Answers (4)

Lance T
Lance T

Reputation: 1

@ccoutinho updated Ale DC's answer to the proper path:

"terminal.integrated.defaultProfile.osx": "zsh"

But I also needed Ale DC's extra tip to trash the currently displayed embedded terminal (clicking the trash icon at the top right of the terminal tab). Otherwise I had one instance showing zsh and another refused to show zsh and it was driving me crazy.

Hope that helps.

Upvotes: 0

ccoutinho
ccoutinho

Reputation: 4636

@Ale's answer is no longer valid! It should be used the following instead:

"terminal.integrated.defaultProfile.osx": "zsh"

Upvotes: 5

Alejandro De Castro
Alejandro De Castro

Reputation: 2257

For those who are using MAC

  1. Launch Visual Studio Code and go to Settings.
  2. In Settings, click on the features dropdown and then on Terminal
  3. Click on edit in settings.json (the icon at the top right) and add this line of code to the user settings json file:

"terminal.integrated.shell.osx": "/bin/zsh"

  1. then you must close that terminal with the trash icon.

that's it, now if you open another terminal you should see the ZSH terminal.

Upvotes: 2

lucidiot
lucidiot

Reputation: 504

You can set the terminal.integrated.shell.linux property as described here. If you need to pass arguments to zsh, use the terminal.integrated.shellArgs.linux property.

Upvotes: 1

Related Questions