-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
59 lines (44 loc) · 1.47 KB
/
tmux.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# C-bのキーバインドを解除する
unbind C-b
unbind Space
# prefixキーを変更する
set -g prefix C-Space
bind-key C-Space send-prefix
# esc keyの効きを良くする
set -s escape-time 0
set -g status on
set-option -g status-position top
set -g history-limit 9999
# mouse setting
set-window-option -g mouse on
# set-option -g mouse-select-window on
# set-option -g mouse-select-pane on
# set-option -g mouse-resize-pane on
# Macのコピペ設定
#set-option -g default-command "reattach-to-user-namespace -l zsh"
# Use vim keybindings in copy mode
setw -g mode-keys vi
# Setup 'v' to begin selection as in Vim
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "xsel -ip && xsel -op | xsel -ib"
# # Update default binding of `Enter` to also use copy-pipe
#unbind -t vi-copy Enter
#bind-key -T copy-mode-vi Enter copy-pipe "reattach-to-user-namespace pbcopy"
# Devide pain vertically
bind H split-window -v
# Devide pain horizontally
bind v split-window -h
# Move to another pain like vim
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# display 256 color
set-option -ga terminal-overrides ",xterm-256color:Tc"
# Reload setting
bind-key r source-file ~/.tmux.conf \; display-message "source-file done"
set -g status off
# Load platform-specific configs
#if-shell 'uname | grep -q Darwin' \
'source-file ~/dotfiles/.tmux.mac.conf' \
'source-file ~/dotfiles/.tmux.linux.conf'