Mercurial > dotfiles
comparison .chezmoiscripts/run_onchange_after_15-install-ubuntu-packages.sh.tmpl @ 809:72744c944497
feat: install packages and rtx for management
author | zegervdv <zegervdv@me.com> |
---|---|
date | Tue, 05 Dec 2023 20:03:16 +0100 |
parents | |
children | 6499aba0eaf3 |
comparison
equal
deleted
inserted
replaced
808:459e70c99f4c | 809:72744c944497 |
---|---|
1 {{ if eq .chezmoi.os "linux" -}} | |
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 "yodl" | |
23 "libevent-core-2.1-7" -}} | |
24 | |
25 {{ $ppa := list | |
26 "ppa:maveonair/helix-editor" | |
27 "ppa:mozillateam/ppa" -}} | |
28 | |
29 {{ $extra_packages := list | |
30 "helix" | |
31 "firefox" -}} | |
32 #!/usr/bin/env bash | |
33 | |
34 set -xe | |
35 | |
36 sudo apt install -y {{ $packages | join " "}} | |
37 | |
38 {{ range $ppa }} | |
39 sudo add-apt-repository -y --no-update --ppa {{ . }} | |
40 {{ end}} | |
41 | |
42 sudo mkdir -p /etc/apt/preferences.d/ | |
43 sudo cp -v {{ .chezmoi.sourceDir }}/system/ubuntu/mozilla-firefox /etc/apt/preferences.d/mozilla-firefox | |
44 | |
45 sudo apt update | |
46 sudo apt install -y {{ $extra_packages | join " " }} | |
47 | |
48 sudo update-alternatives --set x-terminal-emulator /usr/bin/kitty | |
49 | |
50 {{- end }} | |
51 {{- end }} |