Skip to content

Instantly share code, notes, and snippets.

View definitelynotxt's full-sized avatar

Brandon definitelynotxt

  • Your Kernel Memory
View GitHub Profile
@definitelynotxt
definitelynotxt / build-tmux.sh
Created May 4, 2021 09:58 — forked from mbreese/build-tmux.sh
HOWTO build a statically linked tmux in one script (downloads and builds dependencies from source)
#!/bin/bash
TARGETDIR=$1
if [ "$TARGETDIR" = "" ]; then
TARGETDIR=$(python -c 'import os; print os.path.realpath("local")')
fi
mkdir -p $TARGETDIR
libevent() {
curl -LO https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
tar -zxvf libevent-2.0.22-stable.tar.gz