1
>
/*---------------------------------------------------------------------------------------------
shell.ts
2
>
* Copyright (c) Microsoft Corporation. All rights reserved.
3
>
* Licensed under the MIT License. See License.txt in the project root for license information.
4
>
*--------------------------------------------------------------------------------------------*/
5
>
6
>
import { userInfo } from 'os';
7
>
import * as platform from '../common/platform.js';
8
>
import { getFirstAvailablePowerShellInstallation } from './powershell.js';
9
>
import * as processes from './processes.js';
10
>
11
>
/**
12
>
* Gets the detected default shell for the _system_, not to be confused with VS Code's _default_
13
>
* shell that the terminal uses by default.
14
>
* @param os The platform to detect the shell of.
15
>
*/
16
export async function getSystemShell(os: platform.OperatingSystem, env: platform.IProcessEnvironment): Promise<string> {
17
if (os === platform.OperatingSystem.Windows) {