-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·33 lines (27 loc) · 1.14 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·33 lines (27 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
# setup.sh - Automated persistent Codespace setup
set -e
# Update and install essential packages
sudo apt-get update && sudo apt-get install -y git curl vim
# Optional: Install Python and pip
sudo apt-get install -y python3 python3-pip
# Optional: Install Node.js and npm
sudo apt-get install -y nodejs npm
# Optional: Install Docker CLI (if needed)
sudo apt-get install -y docker.io
# Install Git LFS and initialize
sudo apt-get install -y git-lfs
git lfs install
# Install google-gemini-cli globally
if ! npm list -g | grep -q 'google-gemini-cli'; then
echo "Installing google-gemini-cli globally..."
npm install -g google-gemini-cli || echo "Warning: google-gemini-cli may not be published to npm. Manual install may be required."
fi
# Install Homebrew (Linuxbrew)
if ! command -v brew &> /dev/null; then
echo "Installing Homebrew..."
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> "$HOME/.bashrc"
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
fi
echo "Persistent Codespace environment is ready!"