Search code examples
bashwindows-subsystem-for-linuxwindows-terminal

How to define bash as default Windows Terminal command processor?


Microsoft has released a preview version of Windows Terminal at Windows Store, which allows process commands using PowerShell, Command Prompt and Bash (using Windows Subsystem for Linux).

Since PowerShell is default processor, everytime the terminal is launched, I need to change it again to Linux Bash.

Is it possible to define the default processor as Linux instead of keep reseting it over and over?


Solution

  • You need to click 'Settings' menu entry in the drop down menu Options drop down menu

    Then a settings json file should be opened in your default JSON editor. Please look for 'profiles' section and copy guid for your bash profile.

    profiles section

    Then just paste copied guid in 'globals' section's 'defaultProfile' key:

    globals section