Skip to content

Commit

Permalink
Merge pull request #32175 from github/repo-sync
Browse files Browse the repository at this point in the history
Repo sync
  • Loading branch information
docs-bot authored Mar 21, 2024
2 parents 3ef0cdb + bd87487 commit 16d1973
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 16d1973

Please sign in to comment.