dotfiles/home/run_once_01install-packages.sh.tmpl

44 lines
800 B
Bash

#!/bin/sh
set -e
{{ 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 \
glow \
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 "work" -}}
{{ join .chezmoi.sourceDir "encrypted_work_packages.age" | include | decrypt -}}
{{ end }}