Mercurial > dotfiles
comparison .chezmoiscripts/run_onchange_after_17-install-zsh.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 | 7810e6006a61 |
comparison
equal
deleted
inserted
replaced
808:459e70c99f4c | 809:72744c944497 |
---|---|
1 {{ if (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.name "Ubuntu")) -}} | |
2 #!/usr/bin/env bash | |
3 | |
4 {{ $version := "5.9" -}} | |
5 | |
6 set -xe | |
7 | |
8 TMP_BUILD_DIR=/tmp/zsh-install-dir | |
9 rm -rf "$TMP_BUILD_DIR" || true | |
10 mkdir -p $TMP_BUILD_DIR | |
11 pushd "$TMP_BUILD_DIR" | |
12 | |
13 curl -L https://github.com/zsh-users/zsh/archive/refs/tags/zsh-{{ $version }}.tar.gz | tar xz | |
14 pushd zsh-zsh-{{ $version }} | |
15 ./Util/preconfig | |
16 ./configure --prefix /usr/local/ | |
17 make -j | |
18 sudo make install | |
19 | |
20 sudo chsh -s /usr/local/bin/zsh $USER | |
21 | |
22 cd | |
23 | |
24 rm -rf "$TMP_BUILD_DIR" | |
25 | |
26 {{ end }} |