-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
54 lines (41 loc) · 1.62 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
set -g default-terminal "screen-256color"
# Set prefix key to Ctrl-a
unbind-key C-b
set-option -g prefix C-a
# send the prefix to client inside window
bind-key C-a send-prefix
# scrollback buffer n lines
set -g history-limit 5000
# use vim keybindings in copy mode
setw -g mode-keys vi
# clock
set-window-option -g clock-mode-colour colour40 #green
# reload ~/.tmux.conf using PREFIX r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
set -g status-fg white
set -g status-bg colour234
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
set -g message-style bg=colour221
set -g message-style bold
set -g status-left-length 32
set -g status-right-length 150
set -g status-interval 5
set -g window-status-format "#[fg=white,bg=colour234] #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-left ' #[bold]❐ #S#[default] ⣿ '
set -g status-right '#[bold]#(whoami) ● #h#[default] ⡇ #[bold]%H:%M#[default] '
setw -g monitor-activity on
set -g visual-activity off
set -g base-index 1
bind-key c new-window -c "#{pane_current_path}"
bind-key | split-window -h -c "#{pane_current_path}"
bind-key - split-window -v -c "#{pane_current_path}"
bind-key S command-prompt -p ssh: "new-window -n %1 'ssh %1'"
# control + shift up/down/left/right to resize current pane
bind-key -n C-S-Up resize-pane -U 15
bind-key -n C-S-Down resize-pane -D 15
bind-key -n C-S-Left resize-pane -L 25
bind-key -n C-S-Right resize-pane -R 25