From 30034c78b03e41fee31d71b73b2625572da81740 Mon Sep 17 00:00:00 2001 From: Devraj Mehta Date: Wed, 25 Feb 2026 22:34:17 -0500 Subject: [PATCH] install: guide user to update PATH for current shell session 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> --- install.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index fb3d3d4..0d7d77f 100755 --- a/install.sh +++ b/install.sh @@ -156,6 +156,7 @@ if ! command -v copilot >/dev/null 2>&1; then if [ "$REPLY" = "y" ] || [ "$REPLY" = "Y" ]; then echo "export PATH=\"$INSTALL_DIR:\$PATH\"" >> "$RC_FILE" echo "✓ Added PATH export to $RC_FILE" + echo " Restart your shell or run: source $RC_FILE" fi fi else @@ -163,7 +164,11 @@ if ! command -v copilot >/dev/null 2>&1; then echo "To add $INSTALL_DIR to your PATH permanently, add this to $RC_FILE:" echo " export PATH=\"$INSTALL_DIR:\$PATH\"" fi -fi -echo "" -echo "Installation complete! Run 'copilot help' to get started." + echo "" + echo "Installation complete! To get started, run:" + echo " export PATH=\"$INSTALL_DIR:\$PATH\" && copilot help" +else + echo "" + echo "Installation complete! Run 'copilot help' to get started." +fi