ababup1192
4/9/2015 - 4:55 AM

tmux conf

tmux conf

# prefix key
unbind C-b
set-option -g prefix C-t

# escape遅延設定1ms(default 500ms)
set -sg escape-time 1

# status
setw -g status-fg white
setw -g status-bg black
setw -g window-status-current-fg black
setw -g window-status-current-bg cyan

#-------------------------#
# binding
#-------------------------#
# reload conf
bind r source-file ~/.tmux.conf \; display "Reloaded!"

# split window default %/"
bind s split-window -h
bind v split-window -v

# move pain
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

#bind -r C-p select-window -t :-
#bind -r C-n select-window -t :+


# use mouse
set -g mode-mouse on
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on

# kill
bind K kill-window

#コピー
# Ctrl-t yでコピー内容をMacのクリップボードに同期
set-window-option -g mode-keys vi
unbind y
bind y run-shell '~/bin/tmux-pbcopy'

# vim copy 設定
set-option -g default-command "reattach-to-user-namespace -l zsh"