Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 573
JP Ventura Avatar asked Jun 25 '19 13:06

JP Ventura


People also ask

How do I change the default terminal in Windows Terminal?

Launch the Windows Terminal by right-clicking on the Start button. From the drop-down option near the + symbol, select the Settings menu. From the Settings tab of Windows Terminal, select the Default Terminal application as Terminal. Click on the SAVE button.

How do I switch to bash in CMD?

Press Windows key + X then click Command prompt, at the command prompt, type: bash then hit Enter. If you want to be able to access the local file system, press Windows key + X, Command Prompt (Admin) then type bash at the prompt.

How do I change the default shell in Windows 10?

To set a custom shell, you first turn on the Shell Launcher feature, and then you can set your custom shell as the default using PowerShell or MDM. Go to Control Panel > Programs and features > Turn Windows features on or off. Expand Device Lockdown. Select Shell Launcher and OK.


Video Answer


1 Answers

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

like image 106
Eltu Avatar answered Oct 12 '22 20:10

Eltu