Skip to content

Instantly share code, notes, and snippets.

@voidius
Last active August 29, 2015 14:08
Show Gist options
  • Save voidius/68aabdf6d9d63b4948bb to your computer and use it in GitHub Desktop.
Save voidius/68aabdf6d9d63b4948bb to your computer and use it in GitHub Desktop.
howto install tmux 1.9a on redhat 6.5
# source: http://superuser.com/questions/738829/attempting-to-install-tmux-on-centos-6-4-or-centos-6-5-fails-with-error-evbuff
yum -y install ncurses-devel
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar -xvzf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure
make
make install
cd ..
wget http://downloads.sourceforge.net/tmux/tmux-2.0.tar.gz
tar -xvzf tmux-2.0.tar.gz
cd tmux-2.0
./configure
make
make install
echo export LD_LIBRARY_PATH=/usr/local/lib >> ~/.bash_profile
. ~/.bash_profile
bind C-x send-prefix
bind -r C-R source-file ~/.tmux.conf \; display "Reloaded!"
set -g prefix C-x
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r H resize-pane -L 10
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 10
bind r send-key -R
bind S source-file ~/.tmux/session1
bind Q kill-window -a
bind c new-window \; split-window -h \; split-window -v
setw -g mode-mouse off
set -g status-fg white
set -g status-bg black
setw -g window-status-fg cyan
setw -g window-status-bg default
setw -g window-status-attr dim
setw -g window-status-current-fg white
setw -g window-status-current-bg red
setw -g window-status-current-attr bright
set -g pane-border-fg green
set -g pane-border-bg black
set -g pane-active-border-fg white
set -g pane-active-border-bg yellow
set -g status-left-length 40
set -g status-left "#[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P"
#set -g status-right "#[fg=cyan]%d %b %R"
set -g status-right "#[fg=cyan,bg=black,nobold] %d %b %R"
set -g status-justify centre
setw -g monitor-activity on
set -g visual-activity on
setw -g mode-keys vi
# disable automatic window rename │
set-option -g allow-rename off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment