Centos install TMUX tools
Add registered external source address information
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
Execute install tmux
yum install tmux
Create a tmux.conf file in the user root directory and add the following content
vi ~/.tmux.conf
# Modify the default key to trigger the execution of the command: CTRL+b is Ctrl+a set-option -g prefix C-a unbind-key C-b bind-key C-z send-prefix # Add short name to execute split screen execution command bind s setw synchronize-panes #Set screen support color set set -g default-terminal "screen-256color" #default display character set set-window-option -g utf8 on # Set the color of the status bar set -g status-fg black set -g status-bg white # Set the color of the window list setw -g window-status-fg black setw -g window-status-bg default #setw -g window-status-attr dim # Set the color of the active window setw -g window-status-current-fg white setw -g window-status-current-bg red setw -g window-status-current-attr bright # Set the border color of the current window split set -g pane-active-border-fg colour46 #set -g pane-active-border-fg white #set -g pane-active-border-bg colour69 #set -g pane-active-border-bg colour208 #Redefine horizontal split screen command unbind '"' bind - splitw -v #Redefine the vertical split screen command unbind '%' bind | splitw -h
Note that changing the color requires setting the default TERM for the shell user
export TERM=xterm-256color
After adding a line alias t="tmux" in /etc/profile
, use t new to represent tmux new