tmux.conf
#Prefix
set-option -g prefix C-z
#UTF-8
setw -g utf8 on
set -g status-utf8 on
bind C-r source-file ~/.tmux.conf
#status bar
set -g status-fg cyan
set -g status-bg black
set -g status-left-length 30
set -g status-left '#fg=white?#S#[fg=white]{#(_tmux_list_panes_in_current_window)}#default?'
set -g status-right '#fg=black? %Y-%m-%d(%a) %H:%M?#default?'
set -g status-interval 1
setw -g window-status-current-fg black
setw -g window-status-current-bg cyan
setw -g window-status-current-attr bold,underscore
set -g pane-active-border-fg black
set -g pane-active-border-bg cyan
set -g automatic-rename off
#mouse
set -g mode-mouse off
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window off
#misc
set -sg escape-time 1
###key binds
#pane control
bind Tab select-pane -t :.+
unbind s
bind S split-window -v
bind s split-window -h
bind J join-pane -t !
bind -r H select-layout main-vertical \; swap-pane -s : -t 0 \; select-pane -t 0 \; resize-pane -R 9
bind -r V select-layout main-horizontal \; swap-pane -s : -t 0 \; select-pane -t 0 \; resize-pane -D 18
bind C-z send-prefix
unbind M-Up
unbind M-Down
unbind M-Left
unbind M-Right
unbind C-Up
unbind C-Down
unbind C-Left
unbind C-Right
bind -r Up resize-pane -U
bind -r Down resize-pane -D
bind -r Left resize-pane -L
bind -r Right resize-pane -R
_tmux_list_panes_in_current_window
#!/bin/bash
tmux list-panes -F 'active=#{pane_active} #{pane_title}' |sed 's/active=0 /#fg=white?/g' |sed 's/active=1 /#fg=yellow?*/g' |xargs -J _ echo _ #fg=white?