Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repo sync #32175

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ The following examples show how to add the alias configurations to your Bash, Po

Add the following to your Bash configuration file:

```shell
```shell copy
echo 'eval "$(gh copilot alias -- bash)"' >> ~/.bashrc
```

**PowerShell**

Add the following to your PowerShell profile:

```shell
```shell copy
$GH_COPILOT_PROFILE = Join-Path -Path $(Split-Path -Path $PROFILE -Parent) -ChildPath "gh-copilot.ps1"
gh copilot alias -- pwsh | Out-File ( New-Item -Path $GH_COPILOT_PROFILE -Force )
echo ". $GH_COPILOT_PROFILE" >> $PROFILE
Expand All @@ -107,13 +107,13 @@ echo ". $GH_COPILOT_PROFILE" >> $PROFILE

Add the following to your Zsh configuration file:

```shell
```shell copy
echo 'eval "$(gh copilot alias -- zsh)"' >> ~/.zshrc
```

Once you have the alias set up, you can run the following:

```shell
```shell copy
ghcs 'print "Hello world!"'
```

Expand Down
Loading