dotfiles/home/run_once_01install-packages.sh.tmpl

69 lines
1.1 KiB
Bash

#!/bin/sh
set -e
{{ if eq .hosttype "devterm" -}}
sudo apt install \
brightnessctl \
git \
libncurses-dev \
libssl-dev \
lynx \
ripgrep \
tree \
wget \
zsh \
-y
{{ else if eq .hosttype "personal" -}}
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/opt/homebrew/bin/brew shellenv)"
brew install \
bzip2 \
cmus \
curl \
direnv \
fzf \
git \
git-delta \
helix \
jj \
kitty \
neovim \
nvm \
ripgrep \
sqlite \
tree \
watch \
wget \
xz \
yazi \
zellij \
zk \
zlib \
zsh
export NVM_DIR="$HOME/.nvm"
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh"
nvm install 22
nvm use 22
curl -LsSf https://astral.sh/uv/install.sh | sh
uv tool install --force --python python3.12 aider-chat@latest
{{ else if eq .hosttype "wsl" -}}
sudo apt update
sudo apt install \
build-essential \
clang \
libssl-dev \
pkg-config \
ripgrep \
tree \
wget \
yazi \
-y
{{ else if eq .hosttype "work" -}}
{{ join .chezmoi.sourceDir "encrypted_work_packages.age" | include | decrypt -}}
{{ end }}