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.

[DOCS]: Add to PowerShell Profile #49

@breadboi

Description

@breadboi

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

Describe the need

In the PowerShell installation guide on this page https://docs.github.com/en/copilot/github-copilot-in-the-cli/using-github-copilot-in-the-cli, the "PowerShell profile:" instructions work only if the path doesn't include spaces. For example, the current instructions will cause trouble for anyone that's using OneDrive to backup their Documents folder, as it has spaces in the path.

To fix this, you could quote the affected area like so.
echo ". `"$GH_COPILOT_PROFILE`"" >> $PROFILE

Version

Do these docs apply to a specific version?
It does not, this applies to PowerShell overall.

Relevant terminal output

Please copy and paste any relevant terminal output.
The following is what is inserted into my profile using the current documentation.
. C:\Users\username\OneDrive - ExampleOrgName\Documents\PowerShell\gh-copilot.ps1

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions