You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
running these for the first time (as suggested as a first step in the video) results in interactive prompt being added to that file which then break the command string and actually overwrites $profile
these are added to the gh-copilot.ps1 file.
? Allow GitHub to collect optional usage data to help us improve? This data does not include your queries. [Use arrows to move, type to filter]
> Yes
> No
? Allow GitHub to collect optional usage data to help us improve? This data does not include your queries.
> Yes
Also i may have missed this but i dont see a requirement to have powershell 7.3 but your using a "Clean" block in the gh-copilot.ps1 which was only added in 7.3. I may have missed that requirement though
Steps to reproduce the behavior
download CLI, authenticate
run gh copilot alias --help
run the command examples for powershell
Expected vs actual behavior
alias's are added to profile
The text was updated successfully, but these errors were encountered:
@andyfeller my apologies i originally logged this over on the general gh repo and did search first but they then suggested I post here and I didn't search for existing issues open on this repo. If you want to target powershell desktop 5 you would need to refactor the code to remove commands not in 5 such as "Clean" block, assuming the actual extension will even work on 5. If it doesnt work on 5 i guess just put an if to check and prevent potentially breaking a users profile if they try and run it from 5
if ($PSVersionTable.PSVersion.Major-eq5) {
Write-Output"Ending as running in powershell 5"
}
Describe the bug
following your video guide posted here video guide here you run gh copilot alias --help and use the example for adding to powershell profile
running these for the first time (as suggested as a first step in the video) results in interactive prompt being added to that file which then break the command string and actually overwrites $profile
these are added to the gh-copilot.ps1 file.
Also i may have missed this but i dont see a requirement to have powershell 7.3 but your using a "Clean" block in the gh-copilot.ps1 which was only added in 7.3. I may have missed that requirement though
Steps to reproduce the behavior
Expected vs actual behavior
alias's are added to profile
The text was updated successfully, but these errors were encountered: