From 4bd4aef879b5743e88184b71bcbe12dbde920ae6 Mon Sep 17 00:00:00 2001 From: Kanishk Pachauri Date: Thu, 8 Jan 2026 02:11:07 +0530 Subject: [PATCH 1/2] feat: add a help message to reload shell configuration after install --- install | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install b/install index 757694481c4..a51cab71d73 100755 --- a/install +++ b/install @@ -424,6 +424,13 @@ if [[ "$no_modify_path" != "true" ]]; then fi fi +if [[ "$no_modify_path" != "true" ]] && [[ -n $config_file ]] && [[ ":$PATH:" != *":$INSTALL_DIR:"* ]]; then + echo -e "" + echo -e "${ORANGE}To use opencode, reload your shell configuration:${NC}" + echo -e " source $config_file" + echo -e "" +fi + if [ -n "${GITHUB_ACTIONS-}" ] && [ "${GITHUB_ACTIONS}" == "true" ]; then echo "$INSTALL_DIR" >> $GITHUB_PATH print_message info "Added $INSTALL_DIR to \$GITHUB_PATH" From 57ba9d2d6884fbd66596c1bf98635676ee1bbd08 Mon Sep 17 00:00:00 2001 From: Kanishk Pachauri Date: Thu, 8 Jan 2026 02:35:03 +0530 Subject: [PATCH 2/2] chore: added $ prefix to make it clear it's a command to execute --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install b/install index a51cab71d73..908f85fba32 100755 --- a/install +++ b/install @@ -427,7 +427,7 @@ fi if [[ "$no_modify_path" != "true" ]] && [[ -n $config_file ]] && [[ ":$PATH:" != *":$INSTALL_DIR:"* ]]; then echo -e "" echo -e "${ORANGE}To use opencode, reload your shell configuration:${NC}" - echo -e " source $config_file" + echo -e "$ source $config_file" echo -e "" fi