Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

maybe fix pathing

Rahul Tarak197880413137
diff --git a/.github/workflows/test-installation.yml b/.github/workflows/test-installation.yml
index 78e1158f4..20b0ba0bc 100644
--- a/.github/workflows/test-installation.yml
+++ b/.github/workflows/test-installation.yml
@@ -233,7 +233,7 @@ jobs:
exit 1
fi
- if grep -q "composio/bin" ~/.zshrc; then
+ if grep -q "COMPOSIO_INSTALL/bin" ~/.zshrc; then
echo "✅ .zshrc updated with PATH"
else
echo "❌ .zshrc PATH not updated"
@@ -247,7 +247,7 @@ jobs:
exit 1
fi
- if grep -q "composio/bin" ~/.bashrc; then
+ if grep -q "COMPOSIO_INSTALL/bin" ~/.bashrc; then
echo "✅ .bashrc updated with PATH"
else
echo "❌ .bashrc PATH not updated"
diff --git a/install.sh b/install.sh
index 30588714d..dae012d69 100644
--- a/install.sh
+++ b/install.sh
@@ -279,12 +279,28 @@ bash)
# Check if file is writable OR if parent directory is writable (so we can create the file)
if [[ -w "$bash_config" ]] || [[ ! -e "$bash_config" && -w "$(dirname "$bash_config")" ]]; then
- {
- echo -e '\n# Composio CLI'
- for command in "${commands[@]}"; do
- echo "$command"
- done
- } >>"$bash_config"
+ # For .bashrc, prepend the exports before any interactive checks
+ if [[ "$bash_config" == *".bashrc" ]] && [[ -f "$bash_config" ]] && grep -q "case.*-.*in" "$bash_config"; then
+ # Create a temporary file with our exports at the top
+ temp_file=$(mktemp)
+ {
+ echo '# Composio CLI'
+ for command in "${commands[@]}"; do
+ echo "$command"
+ done
+ echo
+ cat "$bash_config"
+ } > "$temp_file"
+ mv "$temp_file" "$bash_config"
+ else
+ # For other configs or if no interactive check found, append as before
+ {
+ echo -e '\n# Composio CLI'
+ for command in "${commands[@]}"; do
+ echo "$command"
+ done
+ } >>"$bash_config"
+ fi
info "Added \"$tilde_bin_dir\" to \$PATH in \"$tilde_bash_config\""
refresh_command="source $bash_config"