Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
71 lines (55 sloc) 2 KB
set-option -g default-shell /bin/zsh
set-option -g default-command 'which reattach-to-user-namespace > /dev/null 2>&1 && reattach-to-user-namespace -l $SHELL || $SHELL'
# デフォルトだとESCキーを押した後に500ms遅延するようになっているので1mにする
set -sg escape-time 1
# Prefix
set-option -g prefix C-o
unbind-key C-b
unbind r
bind r source-file ~/.tmux.conf\; display-message "reload"
# View
set -g status-interval 5
set -g status-left-length 30
set -g status-right-length 50
#他のウィンドウのアクティビティーを表示
set -g monitor-activity on
set -g visual-activity on
set -g status-utf8 on
set -g status-bg black
set -g status-fg white
set -g status-left '#[fg=cyan,bold][#14H:#S:#I]#[default]]'
set -g status-right '|#[fg=magenta,bold]#(load.sh)#[default]| #[fg=blue,bold][%a %m/%d %H:%M]#[default]'
set -g message-attr bold
set -g message-fg white
set -g message-bg red
# Pane
set -g pane-active-border-fg red
set -g pane-active-border-bg white
set-window-option -g mode-bg white
set-window-option -g mode-fg black
# Status
set-window-option -g window-status-fg white
set-window-option -g window-status-bg black
set-window-option -g window-status-current-attr bold#, underscore
set-window-option -g window-status-current-bg black
set-window-option -g window-status-current-fg red
# Option
set-window-option -g utf8 on
set-window-option -g mode-keys vi
set-window-option -g automatic-rename on
set-option -g mouse-select-pane on
set-option -g mouse-select-window on
set-option -g mouse-resize-pane on
set-option -g mouse-utf8 off
set-option -g mode-mouse on
set-option -g base-index 0
set-option -g history-limit 10000
set-option buffer-limit 1000000
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# v1.9 から pane_current_path を引き継がなくなったので明示的にやる
bind '"' split-window -vc "#{pane_current_path}"
bind '%' split-window -hc "#{pane_current_path}"
# bind 'c' new-window -c "#{pane_current_path}"