set -g prefix C-t | |
unbind C-b | |
set -g default-terminal "screen-256color" | |
set -g terminal-overrides 'xterm:colors=256' | |
set -sg escape-time 1 | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
set -g history-limit 1000000 | |
# マウスでスクロールの設定 | |
set-window-option -g mouse on | |
set -g terminal-overrides 'xterm*:smcup@:rmcup@' | |
bind -n WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M | |
bind -n WheelDownPane select-pane -t= \; send-keys -M | |
set-option -g default-command "exec reattach-to-user-namespace -l $SHELL" | |
setw -g mode-keys vi | |
bind-key -T copy-mode-vi v send -X begin-selection | |
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy" | |
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy" | |
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy" | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# Pane move using shift+cursol | |
bind -n S-left select-pane -L | |
bind -n S-down select-pane -D | |
bind -n S-up select-pane -U | |
bind -n S-right select-pane -R | |
# ペインサイズの変更をhjklで | |
bind -r C-h resize-pane -L 6 | |
bind -r C-l resize-pane -R 6 | |
bind -r C-j resize-pane -D 6 | |
bind -r C-k resize-pane -U 6 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment