-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
84 lines (64 loc) · 2 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
# improve colors
set-option -g default-terminal screen-256color
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# History
set -g history-limit 10000
# Window numbers from 1, not from 0, renumber if closed
set -g base-index 1
set-option -g renumber-windows on
# Quick Escape (for vim)
set -s escape-time 0
# tmux messages are displayed for 4 seconds
set -g display-time 4000
# focus events enabled for terminals that support them
set -g focus-events on
# only limit to the screen size of the smallest active session
setw -g aggressive-resize on
# switch pane using Alt-arrow without prefix
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
bind -n S-down new-window
bind -n S-left prev
bind -n S-right next
bind -n C-left swap-window -t -1
bind -n C-right swap-window -t +1
# More friendly split pane
bind-key h split-window -h
bind-key v split-window -v
set -g mouse on
set-option -g status-keys vi
set-option -g set-titles on
set-option -g set-titles-string 'tmux - #W'
set -g bell-action any
set-option -g visual-bell off
set-option -g set-clipboard off
setw -g mode-keys emacs
setw -g monitor-activity on
# Notifications
set -g visual-activity on
# Statusbar
# set -g status-style fg=colour15
# set -g status-justify centre
# set -g status-left ''
# set -g status-right ''
set -g status-interval 1
set -g message-style fg=colour0,bg=colour3
setw -g window-status-current-style fg=yellow,bold
# setw -g window-status-current-format ' #W '
# setw -g window-status-style fg=colour250
# setw -g window-status-format ' #W '
setw -g window-status-bell-style fg=colour1
set -g status-bg '#333333'
set -g status-fg '#cccccc'
# 24 hour clock
setw -g clock-mode-style 24
#run-shell ~/.tmux/plugins/tmux-resurrect/resurrect.tmux
#run-shell ~/.tmux/plugins/tmux-continuum/continuum.tmux
# read config on macosx
if-shell 'test "$(uname)" = "Darwin"' 'source ~/.tmux-osx.conf'
# source .tmux.conf as suggested in `man tmux`
bind R source-file '~/.tmux.conf'