forked from wavded/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
108 lines (82 loc) · 2.83 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
#### COLOUR (Solarized dark) -- From https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-dark.conf
# default statusbar colors
set-option -g status-bg black #base02
set-option -g status-fg yellow #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg brightblue #base0
set-window-option -g window-status-bg default
set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-fg brightred #orange
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr bright
# pane border
set-option -g pane-border-fg black #base02
set-option -g pane-active-border-fg brightgreen #base01
# message text
set-option -g message-bg black #base02
set-option -g message-fg brightred #orange
# 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
#### END COLOUR (Solarized dark) -- From https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-dark.conf
set -g prefix C-a
unbind C-b
set -sg escape-time 1
set -g base-index 1
set -g set-titles on
set -g default-shell /bin/zsh
set -g default-command "reattach-to-user-namespace -l zsh"
bind r source-file ~/.tmux.conf
bind C-a send-prefix
bind x kill-session
bind | split-window -h
bind \ split-window -h
bind - split-window -v
bind _ split-window -v
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r H resize-pane -L 5
bind -r L resize-pane -R 5
setw -g mode-mouse off
set -g status-fg white
set -g status-bg black
setw -g window-status-fg cyan
setw -g window-status-bg default
setw -g window-status-attr dim
setw -g window-status-current-fg white
setw -g window-status-current-bg colour235
setw -g window-status-current-attr bright
set -g pane-border-fg colour236
set -g pane-border-bg colour236
set -g pane-active-border-fg colour240
set -g pane-active-border-bg colour240
set -g message-fg red
set -g message-bg black
set -g message-attr bright
set -g status-utf8 on
set -g status-attr bright
set -g status-left-length 40
set -g status-left "#[bg=cyan,fg=black]"
set -g status-right-length 80
set -g status-right '#[fg=white,bg=colour161] #($HOME/.tmux/ip-address) #[fg=white,bg=cyan] %d %b %R '
setw -g monitor-activity on
set -g visual-activity on
setw -g mode-keys vi
unbind p
bind p paste-buffer
#unbind s
#bind s copy-mode
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection
bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
bind C-v run "tmux set-buffer $(reattach-to-user-namespace pbpaste); tmux paste-buffer"