I installed zsh in my Ubuntu 18.04 but didn't like it. After installing it I was having issues, so I removed it.
The default terminal in my VS Code has not changed back to Bash for some reason. Whenever I open the inbuilt terminal, an error message pops up:
The terminal process command '/usr/bin/zsh' failed to launch (exit code: 1)
I am just able to capture the screenshot - terminal gets automatically closed after fractions of a second.
64 Answers
Try the following steps:
- In the VSC application open
File>Preferences>Settings. Or press Ctrl+,; - At this point you can browse the settings, or type
terminal.integrated.shell.linuxin the search bar; - As value of the field
Terminal > Integrated > Shell:Linuxfill/bin/bash. Then restart the application.
Or, probably better, search for /bin/zsh and replace it with /bin/bash.
- Open Preferences > Settings or simply use Ctrl + ,.
- Search for
Terminal › Integrated › Shell: Linux. - Click on Edit in
settings.json. - Finally add this line
"terminal.integrated.shell.linux": "/bin/bash"and restart your application.
New and easiest way
Configure your default integrated terminal by running the Terminal: Select Default Profile command, which is also accessible via the terminal dropdown.
Open the file ~/.config/Code/User/settings.json and add the following line to the end of the file
"terminal.integrated.defaultProfile.linux": "bash"Replace bash with whatever terminal flavor you fancy.
Ooops i didnt notice this answer was already given by
Maddu Swaroop . Credits to him though i had to find my own despite it was there.