-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtmux.conf.symlink
114 lines (90 loc) · 2.98 KB
/
tmux.conf.symlink
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
109
110
111
112
113
114
# set-window-option --> setw
# copy and paste on Mac OS X
set-option -g default-command "/opt/local/bin/reattach-to-user-namespace -l bash 2> /dev/null || bash"
set -g xterm-keys on
# to add italics (see tmux FAQ)
set -g default-terminal "screen-it-256color"
set -g mode-mouse on
set -g mouse-select-window on
set -g mouse-select-pane on
# start window numbering at 1
set -g base-index 1
# this to avoid text editors clear the screen on exit
#set-window-option -g alternate-screen on
# change the prefix command
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# source (reload) config file
bind r source-file ~/.tmux.conf
# moving around like in vim
set-window-option -g mode-keys vi
set -g status-keys vi
unbind [
bind Escape copy-mode
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
# decent pane splitting
unbind %
bind | split-window -h
bind - split-window -v
# moving around panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# buffer clearing
bind -n C-k clear-history
# time to show messages in status bar
# to print messages in status bar C-a ~
set-option display-time 1500
# time to wait to access scroll-buffer
set -s escape-time 50
# don't close pane when the running command exits
set -g remain-on-exit on
# set windows notifications
setw -g monitor-activity on
set -g visual-activity on
# load my preferred layout
bind P source-file ~/.tmux/threesome
# status line
set -g status-utf8 on
# status line colours
# yellow
#set -g status-bg colour221
set -g status-bg colour236
set -g status-fg white
set -g status-attr bold
#setw -g window-status-attr reverse
#set -g window-status-current-bg colour15
set -g window-status-current-bg colour233
set -g window-status-current-fg white
set-window-option -g window-status-bg black
set-window-option -g window-status-fg colour221
set-window-option -g window-status-attr dim
# status line for messages
#set -g message-bg colour236
set -g message-bg colour236
set -g message-fg white
set -g message-attr bold
set -g message-command-bg colour236
set -g message-command-fg white
# 239 grey 221 yellow
setw -g window-status-format "#[fg=colour226]#[bg=colour208] #I #[fg=colour221]#[bg=colour239] #W "
setw -g window-status-current-format "#[fg=colour226]#[bg=colour208] #I #[bg=colour222]#[fg=colour239] #W "
setw -g status-left "#[fg=white]#[bg=colour233][#S]"
# still to be changed to something more useful
setw -g status-right '"#T" %a %H:%M %d-%b-%y'
#setw -g window-status-current-attr none
set -g pane-active-border-fg colour221
set -g pane-active-border-bg colour241
# Window title
set -g set-titles on
set -g set-titles-string '#S - [#T]'
# setw -g automatic-rename
# copy and paste for Mac OS X
bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
bind C-v run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer"
run-shell ~/tmux-resurrect/resurrect.tmux
set -g @resurrect-save 's'
set -g @resurrect-restore 'r'