-
Notifications
You must be signed in to change notification settings - Fork 1
/
.tmux.conf
76 lines (55 loc) · 2.29 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
# mouse control (clickable windows, panes, resizable panes)
set -g mouse on
# set default terminal mode to 256 colors
set -g default-terminal "screen-256color"
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
setw -g mode-keys vi
# Enable setting window titles
set-option -g set-titles on
# Place the stats bar at the top
set-option -g status-position top
# Update status bar every 5 seconds
set -g status-interval 5
# Better project name in status bar
set -g status-left-length 32
set -g status-right-length 150
set -g status-style fg=colour234,bg=colour238
set -g status-right-style fg=white,bg=colour238
set -g window-status-activity-style bold
set -g pane-border-style fg=colour245
set -g pane-active-border-style fg=colour39
set -g message-style fg=colour16,bg=colour221,bold
set -g status-left '#[fg=colour235,bg=colour252,bold] #S #[fg=colour252,bg=colour238,nobold]'
set -g window-status-format "#[fg=white,bg=colour240] #I #W "
set -g window-status-current-format "#[fg=colour234,bg=colour39]#[fg=colour25,bg=colour39,noreverse,bold] #I #W #[fg=colour39,bg=colour234,nobold]"
set -g status-right '#[fg=colour243,bg=colour238]#[fg=white,bg=colour243,bold]#(uptime | cut -d":" -f4- | sed s/,//g) '
# set prefix to control-z
unbind C-b
set -g prefix C-z
bind z send-keys C-z
bind C-z last-window
set -g base-index 1
set-window-option -g pane-base-index 1
bind | split-window -h # Split window vertically with |
bind - split-window # Split window horizontally with -
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind ` select-window -t 0
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
# prefix C-d to clear the scrolled off (hidden) buffer lines
bind C-d clear-history
# Search for previous error
bind-key e copy-mode \; send-keys "?Error" C-m
bind-key -T copy-mode-vi y send-keys -X copy-pipe "reattach-to-user-namespace pbcopy" \; display-message "Copied to clipboard"
set -sg escape-time 2
# scrollback buffer size increase
set -g history-limit 100000
# Use up and down arrows for temporary "maximize"
unbind Up; bind Up resize-pane -Z; unbind Down; bind Down resize-pane -Z
if-shell '[[ -e ~/.tmux.conf.local ]]' 'source-file ~/.tmux.conf.local'