Change default terminal back to Bash in VS Code

25,788

Solution 1

Try the following steps:

  1. In the VSC application open File>Preferences>Settings. Or press Ctrl+,;
  2. At this point you can browse the settings, or type terminal.integrated.shell.linux in the search bar;
  3. As value of the field Terminal > Integrated > Shell:Linux fill /bin/bash. Then restart the application.

enter image description here

Or, probably better, search for /bin/zsh and replace it with /bin/bash.

Solution 2

  1. Open Preferences > Settings or simply use Ctrl + ,.
  2. Search for Terminal › Integrated › Shell: Linux.
  3. Click on Edit in settings.json.
  4. Finally add this line "terminal.integrated.shell.linux": "/bin/bash" and restart your application.

Solution 3

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.

enter image description here

https://code.visualstudio.com/docs/editor/integrated-terminal#_terminal-profiles

Share:
25,788

Related videos on Youtube

SIDDHARTH VARSHNEY
Author by

SIDDHARTH VARSHNEY

Updated on September 18, 2022

Comments

  • SIDDHARTH VARSHNEY
    SIDDHARTH VARSHNEY over 1 year

    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)

    screenshot of the error

    I am just able to capture the screenshot - terminal gets automatically closed after fractions of a second.

  • SIDDHARTH VARSHNEY
    SIDDHARTH VARSHNEY about 5 years
    that solved the issue...
  • chamzz.dot
    chamzz.dot over 4 years
    In my vs code, it is not in editable mode. How to solve that?
  • Pratik
    Pratik about 4 years
    Thank you :) It worked