tmux个人使用配置,在home目录下创建.tmux.conf

# base settings
set -g default-terminal "screen-256-color"
set -g terminal-override ",rxvt-unicode-256-color:Tc"
set -g base-index 1
set -g pane-base-index 1
set -g status-interval 1
set -g status-keys vi
# prefix key
set-option -g prefix C-a 
unbind-key C-b 
bind-key C-a send-prefix
bind-key -n F5 prev
bind-key -n F6 next
# bindkeys
setw -g mode-keys vi
setw -g automatic-rename on
setw -g allow-rename on
#split window
unbind '"' 
bind - splitw -v
unbind %
bind | splitw -h
#select pane
bind k selectp -U
bind j selectp -D
bind h selectp -L
bind l selectp -R
set -g history-limit 65535
set -g base-index 1
set -g pane-base-index 1

set -g default-terminal xterm
set -g status-bg black
set -g status-fg white
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-selection
set-window-option -g window-status-current-bg blue
set-window-option -g window-status-format '#[dim]#I:#[default]#W#[fg=grey,dim]'
set-window-option -g window-status-current-format '#[fg-cyan,bold]#I#[fg=blue]:#[fg=cyan]#W#[fg=dim]'
set -g status-right '#[fg=green][#[fg=cyan]%Y-%m-%d %H:%M:%S#[fg=green]]'