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 ?…


This content originally appeared on DEV Community and was authored by Marcos Henrique

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",

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


This content originally appeared on DEV Community and was authored by Marcos Henrique


Print Share Comment Cite Upload Translate Updates
APA

Marcos Henrique | Sciencx (2021-06-22T14:11:54+00:00) How to ace zsh’s villain on vscode. Retrieved from https://www.scien.cx/2021/06/22/how-to-ace-zshs-villain-on-vscode/

MLA
" » How to ace zsh’s villain on vscode." Marcos Henrique | Sciencx - Tuesday June 22, 2021, https://www.scien.cx/2021/06/22/how-to-ace-zshs-villain-on-vscode/
HARVARD
Marcos Henrique | Sciencx Tuesday June 22, 2021 » How to ace zsh’s villain on vscode., viewed ,<https://www.scien.cx/2021/06/22/how-to-ace-zshs-villain-on-vscode/>
VANCOUVER
Marcos Henrique | Sciencx - » How to ace zsh’s villain on vscode. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/06/22/how-to-ace-zshs-villain-on-vscode/
CHICAGO
" » How to ace zsh’s villain on vscode." Marcos Henrique | Sciencx - Accessed . https://www.scien.cx/2021/06/22/how-to-ace-zshs-villain-on-vscode/
IEEE
" » How to ace zsh’s villain on vscode." Marcos Henrique | Sciencx [Online]. Available: https://www.scien.cx/2021/06/22/how-to-ace-zshs-villain-on-vscode/. [Accessed: ]
rf:citation
» How to ace zsh’s villain on vscode | Marcos Henrique | Sciencx | https://www.scien.cx/2021/06/22/how-to-ace-zshs-villain-on-vscode/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.