-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
41 lines (32 loc) · 1.1 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
#bind key
unbind C-b
set-option -g prefix C-y
bind C-y send-prefix
#split pane
bind h split-window -h # vertical
bind v split-window -v # horizon
#TODO
set -g status on
#color
set -g default-terminal "screen-256color"
#scroll mouse
set-option -g mouse on
#pane resizing
bind -r < resize-pane -L
bind -r - resize-pane -D
bind -r + resize-pane -U
bind -r > resize-pane -R
#copy mode to vi
set-window-option -g mode-keys vi
#unbind Space
#unbind Return
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
#TODO
#set-option -g default-command "reattach-to-user-namespace -l bash"
#set-option -g default-command ""
# https://github.com/idkazuma/dotfiles/blob/master/.tmux.conf
# if-shell 'test "$(uname)" = "Darwin"' 'set-option -g default-command "reattach-to-user-namespace -l bash"'
bind-key C-c run "tmux save-buffer - | xcopy -i"
bind-key C-v run "xcopy -o | tmux load-buffer - && tmux paste-buffer"