# 讓<Esc>不要延遲
set -s escape-time 0
# 讓powerline在tmux下可以顯示顏色
set -g default-terminal "screen-256color"
#set -g default-terminal "xterm-256color"
# 開啟window rename功能
set-option -g allow-rename
set -g status-justify left
set -g status-interval 15 # 15 sec refresh
set -g display-time 3000
set -g status-bg colour236
set -g status-fg white
set-window-option -g window-status-current-fg black
set-window-option -g window-status-current-bg yellow
set-window-option -g window-status-current-attr default # bright
set -g status-left-length 15
set -g status-right-length 55
#set -g status-left "#[fg=white,bg=blue] > #I #W < #[default] |" # 0:bash
#set -g status-left "#[fg=white,bg=blue] > #S < #[default] |" # session-name
# 改變日期格式
#set -g status-right "#[fg=red,bright][ #[fg=cyan]#H #[fg=red]]#[default] #[fg=yellow,bright]- %Y-%m-%d #[fg=green]%H:%M #[default]#[fg=magenta,bright](load: #(cat /proc/loadavg | cut -d \" \" -f 1,2,3))#[default]"
set -g status-right "#[fg=colour255][#[default]#[fg=colour34]#H#[default]#[fg=colour255]]#[default]#[default] #[fg=colour39](#(cat /proc/loadavg | cut -d \" \" -f 1,2,3))#[default]#[fg=white] | #[default]#[fg=yellow]%Y-%m-%d #[default]#[fg=yellow, bright]%H:%M #[default]"
# 開啟window number rename功能 not work
#set-option -g renumber-windows on
# 關閉rename window功能
#set-option -g allow-rename off
# Make mouse useful in copy mode
#setw -g mode-mouse on
# Mouse support for scrolling
#set -g mouse on
#set -g mode-mouse on
#set -g mouse-resize-pane on
#set -g mouse-select-pane on
#set -g mouse-select-window on
#set-option -g mouse on
#set-option -g -q mouse on