Skip to content

Commit

Permalink
shell-integration -> locate-shell-integration-path
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Jul 19, 2022
1 parent f58d55f commit e62256d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/editor/terminal-shell-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,23 @@ To manually install shell integration, the VS Code shell integration script need
Add the following to your `~/.bashrc` file. Run `code ~/.bashrc` in bash to open the file in VS Code.

```sh
[[ "$TERM_PROGRAM" == "vscode" ]] && . "$(code --shell-integration bash)"
[[ "$TERM_PROGRAM" == "vscode" ]] && . "$(code --locate-shell-integration-path bash)"
```

#### pwsh

Add the following to your [PowerShell profile](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_profiles?view=powershell-7.2). Run `code $Profile` in pwsh to open the file in VS Code.

```pwsh
if ($env:TERM_PROGRAM -eq "vscode") { . "$(code --shell-integration pwsh)" }
if ($env:TERM_PROGRAM -eq "vscode") { . "$(code --locate-shell-integration-path pwsh)" }
```

#### zsh

Add the following to your `~/.zshrc` file. Run `code ~/.zshrc` in bash to open the file in VS Code.

```sh
[[ "$TERM_PROGRAM" == "vscode" ]] && . "$(code --shell-integration zsh)"
[[ "$TERM_PROGRAM" == "vscode" ]] && . "$(code --locate-shell-integration-path zsh)"
```

## Features
Expand Down

0 comments on commit e62256d

Please sign in to comment.