dotfiles/install_tmux.sh
2024-02-03 20:09:24 +01:00

25 lines
792 B
Bash
Executable file

#!/bin/bash
set -e
TMUX_VERSION=3.3a
echo >&2 "====================================================================="
echo >&2 " >> installing tmux"
echo >&2 " >>> install tmux dependencies"
sudo apt install -y libevent-dev
echo >&2 " >>> downloading file"
curl -LO https://github.com/tmux/tmux/releases/download/${TMUX_VERSION}/tmux-${TMUX_VERSION}.tar.gz
echo >&2 " >>> decompressing"
tar -zxf tmux-${TMUX_VERSION}.tar.gz
echo >&2 " >>> changing into tmux src"
cd tmux-${TMUX_VERSION}/
echo >&2 " >>> running .configure"
./configure
echo >&2 " >>> listing file in current dir"
echo >&2 $(ls -la)
echo >&2 " >>> running .configure"
make && sudo make install
echo >&2 " >>> linking tmux config from dotfiles"
mkdir -p ~/.config/tmux
ln -s -f ~/dotfiles/.tmux.conf ~/.config/tmux/tmux.conf