Skip to content
This repository was archived by the owner on Oct 30, 2025. It is now read-only.
This repository was archived by the owner on Oct 30, 2025. It is now read-only.

[BUG]: aliases not working for PowerShell as command is wrong is .ps1 #47

@ifalatiksetlog

Description

@ifalatiksetlog

Thanks for taking the time to fill out this out! 🙇
By submitting this issue, you agree to follow our Code of Conduct.

What happened?

What did you do? What happened? What did you expect to happen?
I ran these commands as provided by the docs:

$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

I expected the aliases ghce and ghcs to work after reloading the profile.

However this does not work, as the command that is executed is gh copilot.exe ... instead of gh copilot ....
This results in
unknown command "copilot.exe" for "gh"

Versions

What versions of the relevant software are you running?
For example: gh v2.37.0, gh-copilot v0.5.2-beta
PowerShell 7.4.1
Windows Terminal Preview 1.20.10572.0
gh version 2.46.0 (2024-03-20)
gh-copilot.exe version 1.0.0 (2024-03-18)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingsupport-sev2High urgency, low or transient impact, no known workaround

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions