Mercurial > dotfiles
comparison .chezmoiscripts/run_once_after_15-install-ubuntu-packages.sh.tmpl @ 807:fa76b30a3c2f
feat: manage more packages for ubuntu
author | zegervdv <zegervdv@me.com> |
---|---|
date | Sat, 02 Dec 2023 00:17:39 +0100 |
parents | e1cbab38a3e1 |
children |
comparison
equal
deleted
inserted
replaced
806:39b3cbfa80c4 | 807:fa76b30a3c2f |
---|---|
1 {{ if eq .chezmoi.os "linux" -}} | 1 {{ if eq .chezmoi.os "linux" -}} |
2 {{ if eq .chezmoi.osRelease.name "Ubuntu" -}} | 2 {{ if eq .chezmoi.osRelease.name "Ubuntu" -}} |
3 | |
4 {{ $packages := list | |
5 "build-essential" | |
6 "libsqlite3-dev" | |
7 "libreadline-dev" | |
8 "libbz2-dev" | |
9 "libncurses-dev" | |
10 "zlib1g-dev" | |
11 "libffi-dev" | |
12 "libssl-dev" | |
13 "software-properties-common" | |
14 "fzf" | |
15 "fd-find" | |
16 "ripgrep" | |
17 "jq" | |
18 "pass" | |
19 "apt-file" | |
20 "fonts-firacode" | |
21 "kitty" -}} | |
22 | |
23 {{ $ppa := list | |
24 "ppa:maveonair/helix-editor" | |
25 "ppa:mozillateam/ppa" -}} | |
26 | |
27 {{ $extra_packages := list | |
28 "helix" | |
29 "firefox" -}} | |
3 #!/usr/bin/env bash | 30 #!/usr/bin/env bash |
4 | 31 |
5 sudo apt install -y libsqlite3-dev libreadline-dev libbz2-dev libncurses-dev zlib1g-dev libffi-dev libssl-dev | 32 set -xe |
33 | |
34 sudo apt install -y {{ $packages | join " "}} | |
35 | |
36 {{ range $ppa }} | |
37 sudo add-apt-repository -y --no-update --ppa {{ . }} | |
38 {{ end}} | |
39 | |
40 sudo mkdir -p /etc/apt/preferences.d/ | |
41 sudo cp -v {{ .chezmoi.sourceDir }}/system/ubuntu/mozilla-firefox /etc/apt/preferences.d/mozilla-firefox | |
42 | |
43 sudo apt update | |
44 sudo apt install -y {{ $extra_packages | join " " }} | |
45 | |
46 sudo update-alternatives --set x-terminal-emulator /usr/bin/kitty | |
47 | |
6 {{- end }} | 48 {{- end }} |
7 {{- end }} | 49 {{- end }} |