Opening terminal in vscode

71 views Asked by At

I was trying to make fish my default shell, and it works in iterm2, but every time I try to open the terminal in vscode I get this error:

The terminal process failed to launch: Path to shell executable "/bin/fish" does not exist.

These are my iterm2 settings: enter image description here

I am on macOS. How can I solve this issue?

Note: Opening vscode form the terminal using the code command works.

1

There are 1 answers

1
ridiculous_fish On

The standard way to change your shell on both Linux and macOS is via the chsh command. The steps are:

  1. Add the shell path to the text file /etc/shells, if not already present. This usually needs to be done as root, but only has to be done once.
  2. Use chsh -s to permanently switch shells.

Example:

> echo /opt/homebrew/bin/fish | sudo tee -a /etc/shells
> chsh -s /opt/homebrew/bin/fish

and now your shell is /opt/homebrew/bin/fish.

on macOS, there is another way:

  1. Go to System Settings -> Users and Groups
  2. Right click on your user and choose Advanced Options
  3. From here you can change your login shell