Mercurial > dotfiles
comparison .chezmoiscripts/run_onchange_after_18-install-tmux.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 | 9e2c5662c2cb |
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 := "3.3a" -}} | |
5 | |
6 set -xe | |
7 | |
8 TMP_BUILD_DIR=/tmp/tmux-install-dir | |
9 mkdir -p "$TMP_BUILD_DIR" | |
10 pushd "$TMP_BUILD_DIR" | |
11 | |
12 curl -L https://github.com/tmux/tmux/releases/download/{{ $version }}/tmux-{{ $version }}.tar.gz | tar xz | |
13 pushd tmux-{{ $version }} | |
14 ./configure --prefix /usr/local/ | |
15 make -j | |
16 sudo make install | |
17 | |
18 cd | |
19 | |
20 rm -rf "$TMP_BUILD_DIR" | |
21 | |
22 {{ end }} |