From 26e28c6929d4e05401918f0025d6c8c0a71858e6 Mon Sep 17 00:00:00 2001 From: Sri Venkateswaran Date: Tue, 12 May 2026 22:14:55 +0530 Subject: [PATCH] Add instructions to source config file in install Print a short message at the end of the install script showing how to source the opencode config for the current session. Uses $config_file if set, otherwise shows the first file from $config_files, and also suggests opening a new terminal tab/window. --- install | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/install b/install index b0716d532082..65fd0a686664 100755 --- a/install +++ b/install @@ -457,4 +457,11 @@ echo -e "opencode ${MUTED}# Run command${NC}" echo -e "" echo -e "${MUTED}For more information visit ${NC}https://opencode.ai/docs" echo -e "" -echo -e "" +echo -e "${MUTED}Run the following to use opencode in this session:${NC}" +if [[ -n "$config_file" ]]; then + echo -e " ${ORANGE}source $config_file${NC}" +else + echo -e " ${ORANGE}source ${config_files%% *}${NC}" +fi +echo -e "${MUTED}or open a new terminal tab/window.${NC}" +echo -e "" \ No newline at end of file