-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
73 lines (59 loc) · 1.94 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
# source-file ...
# Use C-a for the prefix
set -g prefix C-a
unbind C-b
# Basic settings
set -sg escape-time 1
set -g base-index 1
set -g pane-base-index 1
bind C-a send-prefix
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# More sane split-window bindings
bind | split-window -h
bind - split-window -v
# Act like vim
set -g mode-keys vi
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 H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# Mouse
# setw -g mode-mouse on
# set -g mouse-select-pane on
# set -g mouse-resize-pane on
# set -g mouse-select-window on
# Make it all look good
# set -g status-utf8 on
set-option -g status-bg colour227
set-option -g status-fg colour16
set -g status-left '#[bold]⣿ ❐ #S ⡇#[default]'
set -g status-right '#[bold]#(whoami) ● #H#[default] '
set-window-option -g automatic-rename on
# set-window-option -g window-status-fg colour227
# set-window-option -g window-status-bg colour238
set-window-option -g window-status-format ' #I #W '
# set-window-option -g window-status-attr dim
# set-window-option -g window-status-current-bg colour52
# set-window-option -g window-status-current-fg colour227
set-window-option -g window-status-current-format ' #I #W '
# set-window-option -g window-status-current-attr dim
set-option -g set-titles on
set-option -g set-titles-string '#S:#W'
## pane border and colors
# set-option -g pane-active-border-fg yellow
# set-option -g pane-border-fg white
set -g status-interval 60
set -g status-justify left
setw -g monitor-activity on
set -g visual-activity on
unbind Up
bind Up new-window -d -n tmp \; swap-pane -s tmp.1 \; select-window -t tmp
unbind Down
bind Down last-window \; swap-pane -s tmp.1 \; kill-window -t tmp
bind P pipe-pane -o "cat >>/tmp/tmux-#S-#W.log" \; display "Toggled logging to /tmp/tmux-#S-#W.log"