diff --git a/scripts/bootstrap-agents.sh b/scripts/bootstrap-agents.sh index 7a5ed43..5411967 100755 --- a/scripts/bootstrap-agents.sh +++ b/scripts/bootstrap-agents.sh @@ -1,7 +1,9 @@ #!/bin/bash # Bootstrap script for VPS - Ensures latest homelab agents are available # -# Usage: bash <(curl -s http://100.120.125.113:3000/pdm/homelab-agents/raw/branch/main/scripts/bootstrap-agents.sh) +# Usage: source <(curl -s http://100.120.125.113:3000/pdm/homelab-agents/raw/branch/main/scripts/bootstrap-agents.sh) +# +# IMPORTANT: Use 'source' not 'bash' so PATH updates take effect immediately! # # This script: # - Clones or updates the homelab-agents repo @@ -75,7 +77,7 @@ else echo "✅ Created ~/.bashrc with scripts directory" fi -# Also add to current session PATH +# Also add to current session PATH (this is why we use 'source' not 'bash') export PATH="$SCRIPTS_DIR:$PATH" echo "✅ Scripts directory added to current session PATH" @@ -89,10 +91,8 @@ fi echo "" echo "✨ Homelab agents bootstrap complete!" echo "" -echo "📚 Available commands:" +echo "📚 Available commands (ready to use now):" echo " init-project - Initialize a new project with git remote" echo " cd ~/.homelab-agents - Browse agents and scripts" echo "" -echo "📋 Agent location: $AGENTS_DIR/agents/sysadmin-session-closer.md" -echo "" -echo "💡 Tip: Run 'source ~/.bashrc' or restart your shell to ensure PATH is updated" \ No newline at end of file +echo "📋 Agent location: $AGENTS_DIR/agents/sysadmin-session-closer.md" \ No newline at end of file