Last active
March 22, 2024 05:20
-
-
Save kakarot-dev/c5cbba1f0ba26ae327f24f248dd1a2a9 to your computer and use it in GitHub Desktop.
Update Tmux to 3.3a. I just copy pasted and changed values.. Had to install autotools-dev, automake, libtool(brew)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get install autotools-dev | |
| sudo apt-get install automake | |
| brew install libtool | |
| ln -s /usr/local/bin/glibtoolize /usr/local/bin/libtoolize | |
| echo alias tmux=\"tmux -u\" >> ~/.bashrc # enable unicode for better looks | |
| exec $SHELL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -e | |
| ROOT_DIR=${HOME} | |
| # Clean up | |
| rm -rf libevent-2.1.12-stable.tar.gz | |
| rm -rf ncurses-6.2.tar.gz | |
| rm -rf tmux-3.2-rc4.tar.gz | |
| wget "https://github.com/tmux/tmux/releases/download/3.3a/tmux-3.3a.tar.gz" | |
| wget "https://invisible-mirror.net/archives/ncurses/ncurses-6.2.tar.gz" | |
| wget "https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz" | |
| cp -r "./libevent-2.1.12-stable.tar.gz" "./ncurses-6.2.tar.gz" "./tmux-3.3a.tar.gz" ${ROOT_DIR} | |
| cd ${ROOT_DIR} | |
| tar xvf "libevent-2.1.12-stable.tar.gz" | |
| tar xvf "ncurses-6.2.tar.gz" | |
| tar xvf "tmux-3.3a.tar.gz" | |
| # Install libevent | |
| cd libevent-2.1.12-stable | |
| ./autogen.sh | |
| ./configure --prefix=${ROOT_DIR}/.local | |
| make | |
| make install | |
| cd .. | |
| # Install ncurses | |
| cd ncurses-6.2 | |
| ./configure --prefix=${ROOT_DIR}/.local | |
| make | |
| make install | |
| cd .. | |
| # Install tmux | |
| cd tmux-3.3a | |
| ./configure --prefix=${ROOT_DIR}/.local \ | |
| CFLAGS="-I${ROOT_DIR}/.local/include -I${ROOT_DIR}/.local/include/ncurses" \ | |
| LDFLAGS="-L${ROOT_DIR}/.local/include -L${ROOT_DIR}/.local/include/ncurses -L${ROOT_DIR}/.local/lib" | |
| make | |
| make install | |
| cd .. | |
| # Clean up | |
| rm -rf libevent-2.1.12-stable* | |
| rm -rf ncurses-6.2* | |
| rm -rf tmux-3.3a* | |
| echo "[SUCCESS] ${ROOT_DIR}/.local/bin/tmux is now available" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Then copy paste the config i got from somewhere: https://github.com/kakarot-dev/tmux into the
.config/tmuxdir and source it to tmux