Tyriar / vscode-shell-launcher

VS Code extension that enables easy launching of multiple shell configurations in the terminal
https://marketplace.visualstudio.com/items?itemName=Tyriar.shell-launcher
MIT License
49 stars 9 forks source link

default always powershell #21

Closed parthi2929 closed 6 years ago

parthi2929 commented 6 years ago

Hi Even with your configuration, the default is always powershell. I want bash as default, but doing that via default shell option only introduces a new line apart from your config in user settings. Please guide how to avoid powershell. make bash as default shell and still user your launch.

{
    //https://stackoverflow.com/questions/43427631/how-to-add-multiple-terminal-in-vs-code
    "shellLauncher.shells.windows": [
        {
            "shell": "C:\\Program Files\\Git\\bin\\bash.exe",
            "label": "Git bash",
            "workbench.iconTheme": "material-icon-theme",
            "explorer.confirmDelete": false,
            "explorer.confirmDragAndDrop": false,
            //"http.proxyStrictSSL": false
        },
        {
            "shell": "C:\\Windows\\system32\\cmd.exe",
            "label": "cmd",
            "workbench.iconTheme": "material-icon-theme",
            "explorer.confirmDelete": false,
            "explorer.confirmDragAndDrop": false,
            //"http.proxyStrictSSL": false
        }

    ],
    //below line was automatically inserted when trying to change default but once i have this your shell switch no more working
    "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
}
Tyriar commented 6 years ago

//below line was automatically inserted when trying to change default but once i have this your shell switch no more working

terminal.integrated.shell.windows defines the terminal used by vscode integrated terminal, setting this should not affect this extension since the shell get set explicitly by each configuration. Are you sure you're running the correct command? The SO answer recommends adding a keybinding.

parthi2929 commented 6 years ago

I did keybinding also. Anyway problem partly solved. I wish I had both terminals available at once when I open VS code, but now every time I need to open additional terminal by keyboard binding.

Tyriar commented 6 years ago

@parthi2929 opening VS Code will restore the panel and since the extension isn't even loaded yet and there's no API to do this you can't. You could override the default terminal keybinding with this though if you want to see it less: ctrl+shift+`