Skip to content

install: guide user to update PATH for current shell session#1699

Open
devm33 wants to merge 1 commit intomainfrom
devm33/install-ready
Open

install: guide user to update PATH for current shell session#1699
devm33 wants to merge 1 commit intomainfrom
devm33/install-ready

Conversation

@devm33
Copy link
Member

@devm33 devm33 commented Feb 26, 2026

After running curl -fsSL https://gh.io/copilot-install | bash, the installed copilot binary may not be on PATH for the current shell session. The script already detects this and offers to add a PATH export to the user's RC file, but doesn't help with the current session.

Changes

  • When the user accepts adding PATH to their RC file, print a hint to restart their shell or source the file
  • Replace the final Run 'copilot help' message (which would fail if not on PATH) with a copy-pasteable one-liner: export PATH="..." && copilot help
  • Keep the simple copilot help message when the binary is already on PATH

When copilot is not on PATH after install, the script now:
- Tells users to restart their shell or source their RC file after
  adding the PATH export
- Provides a copy-pasteable one-liner (export PATH + copilot help)
  that fixes PATH for the current session and runs the getting started
  command
- Only shows the simple 'copilot help' message when it will actually
  work

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 26, 2026 03:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the user experience after running the GitHub Copilot CLI installation script by providing better guidance for the current shell session. When the installed binary is not immediately on PATH, users need clear instructions on how to use it right away, not just for future sessions.

Changes:

  • Added a hint to restart the shell or source the RC file after accepting to add PATH export
  • Replaced the final message with a copy-pasteable one-liner when copilot is not on PATH
  • Preserved the simple success message when copilot is already accessible

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants