Created
May 31, 2025 21:35
-
-
Save darinkishore/ae380a963b96a80edf83c631ce2c8fb6 to your computer and use it in GitHub Desktop.
Development environment setup script - checks SSH keys, GitHub auth, and displays installed tool versions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Quick setup script for first run | |
set -euo pipefail | |
echo "Setting up development environment..." | |
echo "" | |
# Check if SSH keys are mounted | |
if [ -d "$HOME/.ssh" ] && [ -n "$(ls -A $HOME/.ssh)" ]; then | |
echo "✓ SSH keys found" | |
# Fix permissions (important for SSH) | |
chmod 700 $HOME/.ssh | |
chmod 600 $HOME/.ssh/* | |
else | |
echo "⚠ No SSH keys found. Mount your .ssh directory to use git with SSH." | |
fi | |
# Check GitHub auth | |
if command -v gh &>/dev/null; then | |
if gh auth status &>/dev/null; then | |
echo "✓ GitHub CLI authenticated" | |
else | |
echo "⚠ GitHub CLI not authenticated. Run 'gh-auth.sh' to authenticate." | |
fi | |
fi | |
# Claude Code is now installed in the image by default | |
# Show tool versions | |
echo "" | |
echo "Installed tools:" | |
echo "- mise: $(mise --version)" | |
echo "- node: $(node --version)" | |
echo "- npm: $(npm --version)" | |
echo "- python: $(python3 --version)" | |
echo "- uv: $(uv --version)" | |
echo "- helix: $(hx --version | head -1)" | |
echo "- ripgrep: $(rg --version | head -1)" | |
echo "- fd: $(fd --version)" | |
echo "" | |
echo "✓ Environment ready!" | |
echo "" | |
echo "Tips:" | |
echo "- Run 'gh-auth.sh' to authenticate with GitHub" | |
echo "- Your workspace is at ~/workspace" | |
echo "- Use 'mise' to manage language versions" | |
echo "- Use 'uv' for fast Python package management" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment