# キーバインドの変更
unbind-key C-b
set-option -g prefix C-j
bind C-j send-prefix
bind-key k confirm-before -p "kill-pane #P? (y/n)" kill-pane
bind-key K kill-pane
bind-key h select-pane -t :.-
bind-key l select-pane -t :.+
bind-key v split-window -h
bind-key s split-window
bind-key o new-window
bind-key b choose-window
bind-key M switch-client -l
bind-key H previous-window
bind-key L next-window
# ステータスライン
set-window-option -g utf8 on
set-window-option -g mode-keys vi
set-window-option -g automatic-rename off
set-window-option -g status-interval 5
set -g status-left-length 30
set -g status-left '#[fg=white,bg=black]#[default]'
set -g status-right '#[fg=white,bg=black,bold]#H#][#S#[fg=white]][%Y-%m-%d(%a) %H:%M]#[default]'
# window-status-current
setw -g window-status-current-fg black
setw -g window-status-current-bg cyan
setw -g window-status-current-attr bold#,underscore
# pane-active-border
set -g pane-active-border-fg black
set -g pane-active-border-bg cyan
# color
set-option -g status-bg black
set-option -g status-fg cyan
set-option -g history-limit 100000
# マウス設定
#set-option -g mouse-select-pane on
#set-option -g mouse-select-window on
#set-option -g mouse-resize-pane on
#set-option -g mode-mouse on
# PuTTYを使う場合は、下記の設定はoffを推奨(コメントを参照してください)
set-option -g mouse-utf8 off
bind S run "tmux capture-pane -S -10000; tmux show-buffer | /usr/sbin/sendmail seki@banex.jp"