-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
104 lines (85 loc) · 3.44 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
#set -g utf8 on
# shell
#set -g default-command /bin/bash
#set -g default-shell /bin/bash
set -s escape-time 0
# Reload tmux configuration
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..." \; move-window -r
# increase history limit
set -g history-limit 5000
# mouse mode on by-default
# set -g mode-mouse on
# set -g mouse-resize-pane on
# set -g mouse-select-pane on
# set -g mouse-select-window on
# set-window-option -g mode-mouse on
# set -g mouse-resize-pane on
setw -g aggressive-resize on
set -g default-terminal "screen-256color"
# use PREFIX | to split window horizontally and PREFIX - to split vertically
bind | split-window -h
bind - split-window -v
# colorize messages in the command line
set -g message-bg colour214
set -g message-fg colour232
set -g message-attr bright
# visual notification of activity in other windows
set -g monitor-activity on
set -g visual-activity off
# ----------------------
# Status Bar
# -----------------------
set -g status on # turn the status bar on
#set -g status-utf8 on # set utf-8 for the status bar
set -g status-justify left
# session-name | hostname list of windows date | time
# set -g status-bg colour236
# set -g status-left ""
set -g status-right-length 70
set -g status-left-length 30
# set -g status-right "#[fg=colour223,bg=colour31] %b %d %a,%l:%M %p #[bg=colour24,fg=colour223,bold] #h "
set-option -g status-bg default
set-option -g status-fg black
set-option -g message-bg yellow
set-option -g message-fg black
set -g status-bg black
set -g status-fg white
set-window-option -g window-status-current-bg red
set -g status-left '#[fg=green]#H'
set -g status-right '#[fg=yellow]#(uptime | cut -d "," -f 2-)'
setw -g automatic-rename
# easily toggle synchronization (mnemonic: e is for echo)
# sends input to all panes in a given window.
bind e setw synchronize-panes on \; set -g status-right "#[fg=white,bg=red] Sync #[fg=colour223,bg=colour31] %b %d %a,%l:%M %p #[bg=colour24,fg=colour223,bold] #h "
bind E setw synchronize-panes off \; set -g status-right "#[fg=colour223,bg=colour31] %b %d %a,%l:%M %p #[bg=colour24,fg=colour223,bold] #h "
# window status
setw -g window-status-format "#[fg=colour223,bg=colour234,none] #I #[bg=colour24,fg=colour223,none] #W "
setw -g window-status-current-format "#[bg=colour234,fg=colour214,none] #I #[fg=black,bg=colour214,none] #W "
# set the pane border colors
set -g pane-border-fg colour223
set -g pane-border-bg default
set -g pane-active-border-fg red
set -g pane-active-border-bg default
setw -g mode-keys vi # vim-style movement
# in copy mode
bind -t vi-copy v begin-selection # `v` begins a selection. (movement keys to select the desired bits)
bind -t vi-copy y copy-selection # `y` copies the current selection to one of tmux's "paste buffers"
bind -t vi-copy V rectangle-toggle # `V` changes between line- and columnwise selection
# fast pane switching
# Use Alt-arrow keys without prefix key to switch 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
# Shift arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
bind-key -n C-S-Up resize-pane -U 5
bind-key -n C-S-Down resize-pane -D 5
bind-key -n C-S-Left resize-pane -L 10
bind-key -n C-S-Right resize-pane -R 10
bind-key "<" swap-window -t -1
bind-key ">" swap-window -t +1
# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1