diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2026-01-08 18:14:57 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2026-01-08 18:14:57 -0500 |
| commit | 60810521fa2ef0d1d866171fc0c207d57dbb6d8a (patch) | |
| tree | d7d342dbf6e2560fdbcd2c64aeca53229a9978ab /compile | |
| parent | ca7f8bc63d0b5e552280048d1c7002c965366691 (diff) | |
| download | dotfiles-60810521fa2ef0d1d866171fc0c207d57dbb6d8a.tar.gz dotfiles-60810521fa2ef0d1d866171fc0c207d57dbb6d8a.tar.xz | |
Add ddcutil and thunderbolt rules
Diffstat (limited to 'compile')
| -rwxr-xr-x | compile/tmux.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/compile/tmux.sh b/compile/tmux.sh new file mode 100755 index 0000000..cfe2830 --- /dev/null +++ b/compile/tmux.sh @@ -0,0 +1,31 @@ +#!/bin/sh +# on rhel 9: yum install libevent-devel ncurses-devel +if [ "$(id -u)" -eq 0 ] ; then + echo "Run as a regular user" + exit 1 +fi +nproc=1 +case "$(uname)" in +Darwin|OpenBSD) nproc="$(sysctl -n hw.ncpu)" ;; +Linux) nproc="$(nproc)" ;; +esac +set -ex +codedir="${CODEDIR:-$HOME/.local/src}" +src=https://github.com/tmux/tmux +pkgdir="${codedir}/tmux" + +if ! [ -d "$pkgdir" ] ; then + git clone "$src" "$pkgdir" +fi + +cd "$pkgdir" +git checkout cc117b5048f77a4842820f8ebbe3a86e5c077224 +git reset --hard HEAD +git clean -fdx . +sh autogen.sh +./configure --prefix="$HOME/.local/opt/tmux" +make -j"$nproc" +make install +cd - + +echo 'add ~/.local/opt/tmux/bin to your $PATH' |
