-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_once_before_02-linux-install-brew-packages.zsh.tmpl
51 lines (43 loc) · 1.31 KB
/
run_once_before_02-linux-install-brew-packages.zsh.tmpl
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{{ if .is_root -}}
{{- if (eq .chezmoi.os "linux") -}}
#! /usr/bin/env bash
set -ev pipefail
# 1. Install Homebrew
which -a brew || /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew="/home/linuxbrew/.linuxbrew/bin/brew"
# 2. Add 3rd party brew taps
$brew --version
$brew tap common-fate/granted
# 3. Install Homebrew packages
$brew install kubernetes-cli \
aws-rotate-key \
awscli \
borgbackup \
chezmoi \
docker-credential-helper-ecr \
figlet \
direnv \
fluxcd/tap/flux \
fzf \
gcc \
gh \
git-crypt \
go \
go-task/tap/go-task \
gomplate \
iperf3 \
pre-commit \
k9s \
kubeseal \
kustomize \
shellcheck \
sops \
vale \
granted \
yq || echo "Catching some errors"
# 4. Upgrade already-installed brew packages
$brew update && $brew upgrade
# 5. Download fzf binary and update configuration files non interactively
/home/linuxbrew/.linuxbrew/opt/fzf/install --all
{{- end -}}
{{- end -}}