From bd87487f167329bd2227983d0de48e99dc810044 Mon Sep 17 00:00:00 2001 From: Sophie <29382425+sophietheking@users.noreply.github.com> Date: Thu, 21 Mar 2024 15:47:12 +0100 Subject: [PATCH] Adding `copy` to the configurations (#49799) --- .../using-github-copilot-in-the-cli.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/copilot/github-copilot-in-the-cli/using-github-copilot-in-the-cli.md b/content/copilot/github-copilot-in-the-cli/using-github-copilot-in-the-cli.md index c5821b4a1610..7696376eb9e3 100644 --- a/content/copilot/github-copilot-in-the-cli/using-github-copilot-in-the-cli.md +++ b/content/copilot/github-copilot-in-the-cli/using-github-copilot-in-the-cli.md @@ -89,7 +89,7 @@ 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 ``` @@ -97,7 +97,7 @@ echo 'eval "$(gh copilot alias -- bash)"' >> ~/.bashrc 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 @@ -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!"' ```