add --locate-shell-integration-path CLI support

This commit is contained in:
Z. Grace Moreau
2022-08-05 11:06:36 -06:00
parent 7432973ad7
commit 95ef9dd07e
4 changed files with 7 additions and 5 deletions
+2
View File
@@ -71,6 +71,8 @@ export async function main(argv: string[]): Promise<any> {
case 'pwsh': file = 'shellIntegration.ps1'; break;
// Usage: `[[ "$TERM_PROGRAM" == "vscode" ]] && . "$(code --locate-shell-integration-path zsh)"`
case 'zsh': file = 'shellIntegration-rc.zsh'; break;
// Usage: `string match -q "$TERM_PROGRAM" "vscode"; and . (code --locate-shell-integration-path fish)`
case 'fish': file = 'shellIntegration-fish.fish'; break;
default: throw new Error('Error using --locate-shell-integration-path: Invalid shell type');
}
console.log(join(dirname(FileAccess.asFileUri('', require)).fsPath, 'out', 'vs', 'workbench', 'contrib', 'terminal', 'browser', 'media', file));