-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
75 lines (56 loc) · 1.69 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
set -gq utf8 on
set -g default-command "/bin/zsh"
set -g default-terminal "screen-256color"
set -g visual-bell off
set -g visual-silence off
set -g visual-activity off
set -g bell-action none
setw -g pane-base-index 1
set -g base-index 1
# h/t https://stackoverflow.com/a/41392083
if -b "tmux -V | awk '{ exit !($2 < \"2.1\") }'" "\
set -g mouse-mode on; \
set -g mouse-resize-pane on; \
set -g mouse-resize-pane on; \
set -g mouse-select-window on;"
# h/t https://stackoverflow.com/a/41392083
if -b "tmux -V | awk '{ exit !($2 >= \"2.1\") }'" "\
set -g mouse on;"
# reload
bind r source-file ~/.tmux.conf
bind + new-window
bind - kill-window
# h/t jessie frazelle
unbind %
unbind '"'
bind | split-window -h
bind _ split-window -v
# h/t https://gist.github.com/spicycode/1229612
# shift arrow to change window
bind -n S-Left previous-window
bind -n S-Right next-window
bind h resize-pane -L
bind l resize-pane -R
bind k resize-pane -U
bind j resize-pane -D
bind H resize-pane -L 5
bind L resize-pane -R 5
bind K resize-pane -U 5
bind J resize-pane -D 5
# modes
setw -g clock-mode-colour colour3
setw -g mode-style 'fg=colour1 bg=colour17 bold'
set -g pane-border-status top
set -g pane-border-format '#{pane_current_path}'
set -g pane-border-style 'fg=#a8a8a8'
set -g pane-active-border-style 'fg=#ff367f'
# theme
set -g status-interval 1
set -g status-right-length 60
set -g status-left-length 85
set -g status-style "fg=white bg=#707070"
# set -g window-style "fg=white"
set-window-option -g window-status-current-style "fg=#ff367f bg=#303030 bold"
set-window-option -g window-status-current-format "*#{window_name}*"
set -g status-left ''
set -g status-right '#(whoami) #[fg=white bold]#(date) '