Skip to content

Instantly share code, notes, and snippets.

@kimitoboku kimitoboku/tmux.conf
Last active Dec 27, 2019

What would you like to do?
set -g prefix C-t
unbind C-b
set -g default-terminal "screen-256color"
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
# macOSでは以下の設定も追加
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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.