Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
fix: use login shell instead of running shell for PATH configuration
Hirokazu Tanakaba8bdb56ba46
diff --git a/browser_use/skill_cli/install.sh b/browser_use/skill_cli/install.shindex db52ba985..66e33a755 100755--- a/browser_use/skill_cli/install.sh+++ b/browser_use/skill_cli/install.sh@@ -379,14 +379,13 @@ configure_path() {local bin_path=$(get_venv_bin_dir)local local_bin="$HOME/.local/bin"- # Detect shell- if [ -n "$BASH_VERSION" ]; then- shell_rc="$HOME/.bashrc"- elif [ -n "$ZSH_VERSION" ]; then- shell_rc="$HOME/.zshrc"- else- shell_rc="$HOME/.profile"- fi+ # Detect user's login shell (not the running shell, since this script+ # is typically executed via "curl ... | bash" which always sets BASH_VERSION)+ case "$(basename "$SHELL")" in+ zsh) shell_rc="$HOME/.zshrc" ;;+ bash) shell_rc="$HOME/.bashrc" ;;+ *) shell_rc="$HOME/.profile" ;;+ esac# Check if already in PATH (browser-use-env matches both /bin and /Scripts)if grep -q "browser-use-env" "$shell_rc" 2>/dev/null; then@@ -456,7 +455,7 @@ validate() {print_next_steps() {# Detect shell for source commandlocal shell_rc=".bashrc"- if [ -n "$ZSH_VERSION" ]; then+ if [ "$(basename "$SHELL")" = "zsh" ]; thenshell_rc=".zshrc"fi