Skip to content

Instantly share code, notes, and snippets.

@r0b0t3d
Created May 28, 2025 10:52
Show Gist options
  • Save r0b0t3d/92d9da44fe22190135c71572858a5a69 to your computer and use it in GitHub Desktop.
Save r0b0t3d/92d9da44fe22190135c71572858a5a69 to your computer and use it in GitHub Desktop.
Setup plugins for asdf
#!/bin/bash
# Default versions
DEFAULT_RUBY="3.2.2"
DEFAULT_NODE="20.11.1"
# Use args or defaults
RUBY_VERSION="${1:-$DEFAULT_RUBY}"
NODE_VERSION="${2:-$DEFAULT_NODE}"
# Add plugins
echo "πŸ”Œ Adding asdf plugins..."
asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git
asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
# Install Ruby
echo "πŸ’Ž Installing Ruby $RUBY_VERSION..."
asdf install ruby "$RUBY_VERSION"
asdf set -u ruby "$RUBY_VERSION"
# Install Node.js
echo "🟩 Installing Node.js $NODE_VERSION..."
asdf install nodejs "$NODE_VERSION"
asdf set -u nodejs "$NODE_VERSION"
# Install RubyGems tools
echo "πŸ“¦ Installing bundler and fastlane..."
gem install bundler
gem install fastlane
# Done
echo "βœ… Setup complete!"
ruby -v
node -v
fastlane -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment