02-tmux.sh 297 B

12345678910111213141516
  1. #!/bin/env bash
  2. set -e
  3. sudo apt update
  4. sudo apt install -y libevent-dev pkg-config byacc ncurses-dev
  5. DIR="$HOME/.local/src/tmux"
  6. rm -rf "$DIR"
  7. git clone --depth=1 https://github.com/tmux/tmux.git "$DIR"
  8. pushd "$DIR"
  9. sh autogen.sh
  10. ./configure --prefix="$HOME/.local" && make
  11. make install
  12. popd