Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

fix: align print_next_steps shell detection with configure_path

Hirokazu Tanaka65a57742f5bf
diff --git a/browser_use/skill_cli/install.sh b/browser_use/skill_cli/install.sh
index 66e33a755..2e0553f4a 100755
--- a/browser_use/skill_cli/install.sh
+++ b/browser_use/skill_cli/install.sh
@@ -453,11 +453,12 @@ validate() {
# =============================================================================
print_next_steps() {
- # Detect shell for source command
- local shell_rc=".bashrc"
- if [ "$(basename "$SHELL")" = "zsh" ]; then
- shell_rc=".zshrc"
- fi
+ # Detect shell for source command (must match configure_path logic)
+ case "$(basename "$SHELL")" in
+ zsh) local shell_rc=".zshrc" ;;
+ bash) local shell_rc=".bashrc" ;;
+ *) local shell_rc=".profile" ;;
+ esac
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"