This commit is contained in:
he
2026-07-28 10:28:11 -04:00
parent 0c30e04533
commit fdca639f58
52 changed files with 3487 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -euo pipefail
source "$(dirname "$0")/../../lib/common.sh"
install_opencode() {
command -v opencode &>/dev/null && { log "opencode already installed"; return 0; }
spawn "Installing opencode" bash -c "
curl -fsSL https://opencode.ai/install | bash
"
spawn "source bashrc" source ~/.bashrc
log "opencode installed to ~/.opencode/bin"
log "Add to PATH: export PATH=\"\$HOME/.opencode/bin:\$PATH\""
}
install_opencode
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -euo pipefail
source "$(dirname "$0")/../../lib/common.sh"
install_vscode() {
command -v code &>/dev/null && { log "vscode already installed"; return 0; }
spawn "Adding vscode apt repo" bash -c "
sudo curl -fsSL https://packages.microsoft.com/keys/microsoft.asc \
| sudo gpg --dearmor -o /usr/share/keyrings/packages.microsoft.gpg
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main' \
| sudo tee /etc/apt/sources.list.d/vscode.list >/dev/null
"
spawn "Updating apt" sudo apt update -qq
spawn "Installing code" sudo apt install -y code
}
install_vscode