-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
95 lines (65 loc) · 2.32 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
#### Key bind
set -g prefix C-t
bind C-t send-prefix
unbind C-b
set -g base-index 1
setw -g pane-base-index 1
bind r source-file ~/.tmux.conf \; display "Reloaded!"
#### Mouse
set -g mouse on
set -g pane-border-style "bg=black"
set -g pane-active-border-style "bg=yellow"
set -g message-style "bright"
#### Stataus bar
set -g status-position top
set -g status-justify centre
set -g status-left-length 40
set -g status-left "#[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P"
set -g status-right "#[fg=cyan][%Y-%m-%d(%a) %H:%M]"
set -g display-panes-time 2500
set-option -g default-terminal screen-256color
set -g terminal-overrides 'xterm:colors=256'
#### Copy Mode
set-window-option -g mode-keys vi
bind-key v copy-mode \; display "Copy mode!"
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi y send -X copy-pipe "reattach-to-user-namespace pbcopy"
bind-key -T copy-mode-vi Y send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
bind-key p paste-buffer
#### Pane, Window
set-option -g base-index 1
set-window-option -g pane-base-index 1
bind | split-window -hc "#{pane_current_path}"
bind - split-window -vc "#{pane_current_path}"
bind t new-window -c "#{pane_current_path}"
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
bind -r < swap-window -t -1 \; select-window -t :-
bind -r > swap-window -t +1 \; select-window -t :+
#### COLOUR (Solarized dark)
# default statusbar colors
set-option -g status-style "bg=black,fg=yellow,default"
# default window title colors
set-window-option -g window-status-style "bg=default,fg=brightblue"
# active window title colors
set-window-option -g window-status-current-style "bg=default,fg=brightred"
# pane border
set-option -g pane-border-style "fg=black,bg=black"
set-option -g pane-active-border-style "fg=black,bg=brightgreen"
# message text
set-option -g message-style "bg=black,fg=brightred"
# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #orange
# clock
set-window-option -g clock-mode-colour green #green
# bell
set-window-option -g window-status-bell-style "fg=black,bg=red"