Skip to content

chsh to powershell breaks the integrated terminal #25035

@vors

Description

@vors
  • VSCode Version: Version 1.11.2 (1.11.2)
  • OS Version: macOS 10.12.4

Steps to Reproduce:

  1. Install powershell on macOS. Add it to list of shells and set it as default terminal with chsh. (my current setup)
  2. Run vscode and try to open the interactive terminal.

Expected

Terminal opens and shows powershell

Actual

Terminal crashes, because my settings now looks like this:

  // The path of the shell that the terminal uses on OS X.
  "terminal.integrated.shell.osx": "/usr/local/bin/powershell",

  // The command line arguments to use when on the OS X terminal.
  "terminal.integrated.shellArgs.osx": [
    "-l"
  ],

And -l is not a valid powershell flag.
PowerShell equivalent of it is -noprofile.

Metadata

Metadata

Assignees

Labels

*as-designedDescribed behavior is as designedterminalGeneral terminal issues that don't fall under another label

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions