mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-03-26 09:35:52 +00:00
- Fix 'variable was never mutated' warning in ScreencapService.swift - Fix fnm env command syntax error in node-path-setup.sh - Remove incorrect --use-on-cd flag usage The duplicate rpath warning remains (needs Xcode project fix)
21 lines
596 B
Bash
21 lines
596 B
Bash
#!/bin/bash
|
|
|
|
# Load fnm if available
|
|
if command -v fnm >/dev/null 2>&1; then
|
|
eval "$(fnm env)" 2>/dev/null || true
|
|
fi
|
|
|
|
# Load NVM if available
|
|
if [ -s "$HOME/.nvm/nvm.sh" ]; then
|
|
export NVM_DIR="$HOME/.nvm"
|
|
source "$NVM_DIR/nvm.sh" 2>/dev/null || true
|
|
fi
|
|
|
|
# Set final PATH with Homebrew priority
|
|
export PATH="/opt/homebrew/bin:/usr/local/bin:$HOME/.volta/bin:$HOME/Library/pnpm:$HOME/.bun/bin:$PATH"
|
|
|
|
# Verify Node.js is available
|
|
if ! command -v node >/dev/null 2>&1; then
|
|
echo "error: Node.js not found. Install via: brew install node" >&2
|
|
return 1 2>/dev/null || exit 1
|
|
fi
|