Skip to content

Commit 4f033d1

Browse files
committed
docs: improve post-installation guidance for users
- Add more informative messages after installation, including instructions to check the version and clear section breaks for readability - Remind users to restart their terminal or source their shell config file for the changes to take effect Signed-off-by: appleboy <[email protected]>
1 parent be27734 commit 4f033d1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

install.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,13 @@ function download_and_install() {
5454
# Rename the binary to codegpt
5555
mv "${TARGET}" "${INSTALL_DIR}/codegpt"
5656
# show the version
57+
print_message info "Installed ${ORANGE}${CLIENT_BINARY}${NC} to ${GREEN}${INSTALL_DIR}${NC}"
58+
print_message info "Run ${ORANGE}codegpt version${NC} to show the version"
59+
print_message info ""
60+
print_message info "==============================="
5761
"${INSTALL_DIR}/codegpt" version
62+
print_message info "==============================="
63+
print_message info ""
5864
}
5965

6066
function add_to_path() {
@@ -183,6 +189,9 @@ if [[ ":$PATH:" != *":$INSTALL_DIR:"* ]]; then
183189
esac
184190
fi
185191

192+
print_message info "To use the command, please restart your terminal or run:"
193+
print_message info " source $config_file"
194+
186195
if [ -n "${GITHUB_ACTIONS-}" ] && [ "${GITHUB_ACTIONS}" == "true" ]; then
187196
echo "$INSTALL_DIR" >>$GITHUB_PATH
188197
print_message info "Added $INSTALL_DIR to \$GITHUB_PATH"

0 commit comments

Comments
 (0)