-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
108 lines (84 loc) · 2.51 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
unbind-key -a
#unbind C-b
#set-option -g prefix C-a
#bind-key C-a send-prefix
# set-option -g status-position bottom
# set-option -g status-interval 1
# set-option -g status-style bg=black
# set-option -g status-style fg=white
# set -g status-left '#[fg=green]#H #[default]'
# set -g status-right '%l:%M:%S %p#[default] #[fg=blue]%Y-%m-%d'
# set-option -g pane-active-border-style fg=green
# set-option -g pane-border-style fg=black
set -g status off
set -g base-index 0
setw -g pane-base-index 0
set -sg escape-time 0
set-option -wg automatic-rename off
set-option -g default-terminal screen-256color
set -ga terminal-overrides ",xterm-256color:Tc"
#set -g default-terminal "tmux-256color"
#set -ga terminal-overrides ",*256col*:Tc"
set -g pane-border-style fg=black
set -g pane-active-border-style "bg=default fg=magenta"
#COPY PASTE with MOUSE
# To copy, left click and drag to highlight text in yellow,
# once you release left click yellow text will disappear and will automatically be available in clibboard
set-window-option -g mode-keys vi
setw -g mode-keys vi
set-option -g mouse on
set-option -g set-clipboard on
bind-key -n M-n copy-mode
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 "xclip -in -sel clipboard"
bind-key -T copy-mode-vi Escape send -X cancel
bind-key -n C-v run-shell "xclip -o -sel clipboard | tmux load-buffer - && tmux paste-buffer"
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -in -sel clipboard"
#bind-key -n MouseDrag1Status swap-window -d -t=
unbind C-S-v
unbind C-S-V
unbind C-d
unbind C-=
unbind C-.
unbind C-,
unbind C-n
unbind C-m
unbind F1
unbind F2
unbind F3
unbind F4
unbind F5
unbind F6
unbind F7
unbind F8
unbind F9
unbind F10
unbind F12
unbind Up
unbind Down
unbind Left
unbind Right
unbind C-Up
unbind C-Down
unbind C-Left
unbind C-Right
# bind-key -n M-M next-window
bind-key -T root M-! select-window -t 0
bind-key -T root M-@ select-window -t 1
bind-key -T root M-# select-window -t 2
bind-key -T root M-$ select-window -t 3
bind-key -T root M-% select-window -t 4
bind-key -n M-L select-pane -L
bind-key -n M-J select-pane -D
bind-key -n M-K select-pane -U
bind-key -n M-H select-pane -R
bind-key -n M-U resize-pane -L 10
bind-key -n M-I resize-pane -D 10
bind-key -n M-O resize-pane -U 10
bind-key -n M-P resize-pane -R 10
bind-key -n M-M resize-pane -Z
bind-key -n 'M-"' split-window -h
bind-key -n M-: split-window -v
unbind '"'
unbind %
# and now unbind keys