install: guide user to update PATH for current shell session#1699
Open
install: guide user to update PATH for current shell session#1699
Conversation
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>
Contributor
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After running
curl -fsSL https://gh.io/copilot-install | bash, the installedcopilotbinary 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
sourcethe fileRun 'copilot help'message (which would fail if not on PATH) with a copy-pasteable one-liner:export PATH="..." && copilot helpcopilot helpmessage when the binary is already on PATH