-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_once_000_install_dependencies.sh.tmpl
More file actions
108 lines (101 loc) · 1.7 KB
/
run_once_000_install_dependencies.sh.tmpl
File metadata and controls
108 lines (101 loc) · 1.7 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#!/bin/bash -e
{{ if eq .chezmoi.os "darwin" -}}
# installing pkgsrc package manager
~/.dotfiles/scripts/pkgsrc.sh
# installing binary GNU packages
sudo /opt/pkg/bin/pkgin -y install \
bat \
bc-gh \
eza \
fd-find \
gnuls \
jq \
libusb \
neofetch \
rclone \
ripgrep \
sd \
tealdeer \
wget
{{ else if (and (eq .chezmoi.os "linux") (not .codespaces)) -}}
echo "installing dependencies for osRelease: {{ .chezmoi.osRelease.id }}"
{{ if (or (eq .chezmoi.osRelease.id "debian") (eq .chezmoi.osRelease.id "ubuntu") (eq .chezmoi.osRelease.id "kali")) -}}
sudo apt-get install -y --no-install-recommends \
bat \
build-essential \
curl \
eza \
fd-find \
git \
gnupg \
sudo \
zsh \
mc \
neofetch \
rclone \
ripgrep \
sd \
tealdeer \
wget
{{ else if eq .chezmoi.osRelease.id "arch" -}}
sudo pacman -Sy --noconfirm \
bat \
base-devel \
curl \
eza \
fd \
git \
gnupg \
sudo \
zsh \
mc \
neofetch \
rclone \
ripgrep \
sd \
tealdeer \
wget
{{ else if eq .chezmoi.osRelease.id "fedora" -}}
sudo dnf install -y \
bat \
make \
automake \
eza \
gcc \
gcc-c++ \
kernel-devel \
curl \
fd-find \
git \
gnupg \
sudo \
zsh \
neofetch \
rclone \
ripgrep \
sd \
tealdeer \
wget \
which
{{ else if eq .chezmoi.osRelease.id "alpine" -}}
sudo apk add --update \
bat \
build-base \
curl \
eza \
fd \
git \
gnupg \
sudo \
zsh \
mc \
rclone \
ripgrep \
sd \
wget
sudo bash -c "echo \"@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing\" >> /etc/apk/repositories"
sudo apk add --update tealdeer@testing neofetch@testing
# alpine profile is dirty
sudo rm -rf /etc/profile
{{ end -}}
{{ end -}}