diff --git a/install-claude-code.sh b/install-claude-code.sh index 0de0def..ea2958e 100755 --- a/install-claude-code.sh +++ b/install-claude-code.sh @@ -670,15 +670,20 @@ offer_coding_helper_addons() { fi # Core not installed, offer installation - read -p "Install Z.AI coding-helper? [y/N] " -n 1 -r install_helper < /dev/tty + echo "" + echo -e "${BOLD}${MAGENTA}═══════════════════════════════════════════════════════════${NC}" + echo -e "${BOLD}${MAGENTA} Install Z.AI coding-helper now?${NC} ${GREEN}[Y/n]${NC}" + echo -e "${BOLD}${MAGENTA}═══════════════════════════════════════════════════════════${NC}" + read -p " " -n 1 -r install_helper < /dev/tty echo "" - if [[ ! $install_helper =~ ^[Yy]$ ]]; then + # Default to Yes if user just presses Enter + if [[ -z "$install_helper" ]] || [[ $install_helper =~ ^[Yy]$ ]]; then + install_coding_helper + else log_info "Skipping coding-helper installation" return fi - - install_coding_helper } install_coding_helper() { @@ -743,10 +748,13 @@ install_coding_helper() { echo -e "${GREEN}Option 3: Run without installation (works immediately)${NC}" echo -e " Just use: ${YELLOW}npx @z_ai/coding-helper${NC}" echo "" - echo -e "${CYAN}Want to try with sudo now? [y/N]${NC}" + echo -e "${BOLD}${YELLOW}═══════════════════════════════════════════════════════════${NC}" + echo -e "${BOLD} Try installing with sudo now?${NC} ${GREEN}[Y/n]${NC} ${BOLD}(recommended)${NC}" + echo -e "${BOLD}${YELLOW}═══════════════════════════════════════════════════════════${NC}" read -p " " -n 1 -r use_sudo < /dev/tty echo "" - if [[ $use_sudo =~ ^[Yy]$ ]]; then + # Default to Yes if user just presses Enter + if [[ -z "$use_sudo" ]] || [[ $use_sudo =~ ^[Yy]$ ]]; then echo "" log_info "Installing with sudo..." if sudo npm install -g @z_ai/coding-helper 2>&1; then