Mercurial > dotfiles
comparison .chezmoiscripts/run_onchange_after_14-install-ubuntu-packages.sh.tmpl @ 1077:04ad0b576298
fix: make sure mise is installed before mercurial
author | Zeger Van de Vannet <zeger@vandevan.net> |
---|---|
date | Sat, 22 Feb 2025 10:13:14 +0100 |
parents | .chezmoiscripts/run_onchange_after_15-install-ubuntu-packages.sh.tmpl@6ab26ddbf78d |
children | 6a132d60cb29 |
comparison
equal
deleted
inserted
replaced
1074:8ea059eef6af | 1077:04ad0b576298 |
---|---|
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 "fd-find" | |
15 "ripgrep" | |
16 "jq" | |
17 "pass" | |
18 "apt-file" | |
19 "fonts-firacode" | |
20 "kitty" | |
21 "yodl" | |
22 "libevent-core-2.1-7" | |
23 "libevent-dev" | |
24 "pipx" | |
25 "bison" | |
26 "flex" | |
27 "libnotify4" | |
28 "autoconf" -}} | |
29 | |
30 {{ $ppa := list | |
31 "ppa:maveonair/helix-editor" | |
32 "ppa:mozillateam/ppa" | |
33 "ppa:fish-shell/release-3" -}} | |
34 | |
35 {{ $extra_packages := list | |
36 "helix" | |
37 "firefox" | |
38 "fish" -}} | |
39 #!/usr/bin/env bash | |
40 | |
41 set -xe | |
42 | |
43 sudo apt install -y {{ $packages | join " "}} | |
44 | |
45 {{ range $ppa }} | |
46 sudo add-apt-repository -y --no-update --ppa {{ . }} | |
47 {{ end }} | |
48 | |
49 sudo mkdir -p /etc/apt/preferences.d/ | |
50 sudo cp -v {{ .chezmoi.sourceDir }}/system/ubuntu/mozilla-firefox /etc/apt/preferences.d/mozilla-firefox | |
51 | |
52 sudo apt update | |
53 sudo apt install -y {{ $extra_packages | join " " }} | |
54 | |
55 sudo update-alternatives --set x-terminal-emulator /usr/bin/kitty | |
56 | |
57 {{- end }} | |
58 {{- end }} |