DEV Community

Marcos Henrique
Marcos Henrique

Posted on

9 3

How to ace zsh's villain on vscode

It's another graceful coding day, but all of a sudden the zsh's villain attacks on vscode and pops up a toast message with the temorous error:

The terminal process failed to launch: Path to shell executable "zsh" is not a file of a symlink đŸ˜±

villain gif
And zsh never works again on vscode's integrated terminal 😱

But don't fear my lil locust, everything has a happy ending!

happy final
To solve this error you just need to open your user settings with CTRL + SHIFT + P and search for Open User Settings then search for Terminal Settings after that click on Edit in settings.json and finnaly add these lines into your json

"terminal.integrated.profiles.linux": {
    "bash": {
      "path": "bash"
    },
    "zsh": {
      "path": "/usr/bin/zsh"
    }
  },
"terminal.integrated.defaultProfile.linux": "zsh",
Enter fullscreen mode Exit fullscreen mode

If you don't know your zsh path, just open your terminal CTRL + T and execute this command which zsh then you will see your zsh's path.

cheers

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (3)

Collapse
 
kvwillian profile image
Kevin Willian ‱

VocĂȘ simplesmente salvou um dia!!
Muito obrigado, não achava a solução desse problema em lugar algum!!!

Collapse
 
wakeupmh profile image
Marcos Henrique ‱

Fico feliz em ajudar manoooo, sofri pra desenrolar isso rs

Collapse
 
cesarmachado profile image
CĂ©sar Machado ‱

Muito obrigado. salvo.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more