Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Installing tmux locally from source
git clone ~/software/libevent_source
cd ~/software/libevent_source
./ &&
./configure --prefix=$HOME/software/libevent/ &&
make -j12 &&
make install -j12
git clone ~/software/tmux_source
cd ~/software/tmux_source
sh &&
./configure --prefix=$HOME/software/tmux CFLAGS="-I$HOME/software/libevent/include" LDFLAGS="-L$HOME/software/libevent/lib" &&
make -j12 &&
make install -j12
echo -e "# Add tmux to path\nsetenv LD_LIBRARY_PATH ~/software/libevent/lib\nsetenv PATH ~/software/tmux/bin:\$PATH\n" >> ~/.cshrc.private
git clone --recursive ~/.tmux
ln -s ~/.tmux/.tmux.conf ~/.tmux.conf
cd ~/.tmux/vendor/
git clone
cd tmux-mem-cpu-load &&
mkdir build &&
cd build &&
cmake .. -DCMAKE_INSTALL_PREFIX:PATH=$HOME/software/tmux/ &&
make -j12 &&
make install -j12
vi ~/.tmux/.tmux.conf
# Replace these lines:
set -g status-left '#[fg=green]#H #[fg=red]• #[fg=green,bright]#(uname -r | cut -c 1-6)#[default]'
set -g status-right '#[fg=green,bg=default,bright]#(~/software/tmux/bin/tmux-mem-cpu-load) #[fg=red,dim,bg=default]#(uptime | cut -f 4-5 -d " " | cut -f 1 -d ",") #[fg=white,bg=default]%a%l:%M:%S %p#[default] #[fg=blue]%Y-%m-%d'
# Execute while in tmux
CTRL+a :source-file ~/.tmux.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.