Update code-server-setup.sh

This commit is contained in:
Charmunk 2025-12-06 17:06:06 -05:00 committed by GitHub
parent 32e5d00861
commit 79ac49a77b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,6 +9,15 @@ HACKATIME_API_KEY="${1:-}"
echo "Starting development environment setup..."
# Set up Hackatime if API key is provided
if [ -n "$HACKATIME_API_KEY" ]; then
echo "⏱️ Setting up Hackatime..."
export HACKATIME_API_KEY="$HACKATIME_API_KEY"
export HACKATIME_API_URL="https://hackatime.hackclub.com/api/hackatime/v1"
export SUCCESS_URL="https://hackatime.hackclub.com//success.txt"
curl -sSL https://hackatime.hackclub.com/hackatime/setup.sh | bash
fi
echo "Updating package manager..."
sudo apt update && sudo apt upgrade -y
@ -96,20 +105,10 @@ sudo apt install -y \
# Extras
echo "Seting up extras"
curl -LsSf https://astral.sh/uv/install.sh | sh
sudo apt install crystal
gem install rails
sudo apt install crystal -y
gem install rails
sudo npm install pnpm
# Set up Hackatime if API key is provided
if [ -n "$HACKATIME_API_KEY" ]; then
echo "⏱️ Setting up Hackatime..."
export HACKATIME_API_KEY="$HACKATIME_API_KEY"
export HACKATIME_API_URL="https://hackatime.hackclub.com/api/hackatime/v1"
export SUCCESS_URL="https://hackatime.hackclub.com//success.txt"
curl -sSL https://hackatime.hackclub.com/hackatime/setup.sh | bash
fi
# Final cleanup
echo "🧹 Cleaning up..."
sudo apt autoremove -y