Bash is the major shell client I use. On Windows 10 I really enjoy git-bash. But how to set bash to the default terminal in the new Windows terminal?

Brief steps:

  • Install a Linux style shell like git-bash.
  • Install the Windows Terminal
  • Make git-bash the default terminal in Windows Terminal
  • Make the theme looks like Ubuntu style.
  • Allow Ctrl + V to paste
  • Allow starting WT in the directory right-click context menu.

Install git-bash

Before starting, you need to have git bash already installed. Install it here:

Install Windows Terminal

And then, download the new Windows terminal in the Microsoft store.

After installing it, you will open a new PowerShell session by default.

Change the default shell to bash

To change it to bash, first, open the settings page.

Past the following object to the list.

                "guid": "{11a66a21-0c86-4522-aa0d-415cce5f172c}",
                "name": "Bash",
                "commandline": "bash.exe -li",
                "icon" : "ms-appx:///ProfileIcons/{574e775e-4f2a-5b96-ac1e-a2962a402336}.png",
                "hidden": false,
                "acrylicOpacity" : 0.8,
                "startingDirectory" : "$UserProfile",
                "useAcrylic" : true

This enables the bash in Windows Terminal. But bash is not the default. To change the default, edit here:

Save it, and restart the Windows Terminal. Now bash shall be the default.

And to run Windows terminal from any path, just run:


Like this:

Change the terminal theme to make it looks like Ubuntu

To make it looks more like the bash in Ubuntu, add a color theme:

    // Add custom color schemes to this array
    "schemes": [
            "name": "Ubuntu",
            "foreground": "#EEEEEC",
            "background": "#2C001E",
            "black": "#0C0C0C",
            "red": "#C50F1F",
            "green": "#53E14E",
            "yellow": "#E1AC10",
            "blue": "#0037DA",
            "purple": "#A837B8",
            "cyan": "#3A96DD",
            "white": "#CCCCCC",
            "brightBlack": "#767676",
            "brightRed": "#E74856",
            "brightGreen": "#16C60C",
            "brightYellow": "#F9F1A5",
            "brightBlue": "#3B78FF",
            "brightPurple": "#B4009E",
            "brightCyan": "#61D6D6",
            "brightWhite": "#F2F2F2"

And use the color theme like this:

                "guid": "{11a66a21-0c86-4522-aa0d-415cce5f172c}",
                "name": "Bash",
                "commandline": "bash.exe -li",
                "icon" : "ms-appx:///ProfileIcons/{574e775e-4f2a-5b96-ac1e-a2962a402336}.png",
                "hidden": false,
                "acrylicOpacity" : 0.8,
                "startingDirectory" : ".",
                "useAcrylic" : true,
                // Add this:
                "colorScheme": "Ubuntu",
                "fontFace": "Cascadia Code",
                "fontSize": 12

And it looks better. Use it just like you do in Ubuntu!

Allow Ctrl + V to paste

And to enable Ctrl + V paste binding, consider adding this:

    "keybindings": [
        { "command": "paste", "keys": "ctrl+v" },
        { "command": "copy", "keys": "ctrl+c" }

Allow start it from right-click menu

Create a new file named InstallWTMenu.bat. Edit the content of it to:

reg add "HKCU\Software\Classes\Directory\shell\Open WT here\command" /d "\"%LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe\" -d \"%%1\"" /f
reg add "HKCU\Software\Classes\Directory\Background\shell\Open WT here\command" /d "\"%LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe\" -d \"%%V\"" /f
reg add "HKCU\Software\Classes\LibraryFolder\Background\shell\Open WT here\command" /d "\"%LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe\" -d \"%%V\"" /f

Save it, and run it as admin.

After running it, restart your explorer. And there will appear a new directory context menu item:

When you click it:

It is just the place where you open it!

Hope you like it!

Additional steps

Install PowerShell 7. Download it here:

And consider running the project to add it to the context menu with advanced options:

default layout