-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
100 lines (83 loc) · 2.84 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
set-window-option -g mode-keys vi
set -g mouse on
set -g set-clipboard on
# Rebind action/predix
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# sane split
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# -- general -------------------------------------------------------------------
# set -g default-terminal "screen-256color" # colors!
# set-option -sa terminal-overrides ',xterm-256color:RGB'
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",xterm-256color:Tc"
setw -g xterm-keys on
set -s escape-time 10 # faster command sequences
set -sg repeat-time 2000 # increase repeat timeout 2s
set -s focus-events on
set -g status-interval 10 # redraw status line every 10 seconds
# -- display -------------------------------------------------------------------
set -g base-index 1 # start windows numbering at 1
setw -g pane-base-index 1 # make pane numbering consistent with windows
setw -g automatic-rename on # rename window to reflect current program
set -g renumber-windows on # renumber windows when a window is closed
set -g set-titles on # set terminal title
set -g set-titles-string '#H:#S.#I.#P #W #T'
set -g display-panes-time 800 # slightly longer pane indicators display time
set -g display-time 4000 # slightly longer status messages display time
set -g history-limit 10000 # increase scrollback buffer size
# activity
set-window-option -g monitor-activity on
set -g bell-action any
set -g visual-bell off
set -g visual-activity off
# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-left-style fg=green
# default statusbar colors
set -g status-fg white
set -g status-bg black
set -g status-style bright
# default window title colors
set-window-option -g window-status-style fg=white
set-window-option -g window-status-style bg=default
set-window-option -g window-status-style dim
# active window title colors
set-window-option -g window-status-current-style fg=white
set-window-option -g window-status-current-style bg=default
set-window-option -g window-status-current-style bright
# Highlight active window
set-window-option -g window-status-current-style bg=red
# Switch windows
bind -r C-u select-window -t :-
bind -r C-i select-window -t :+
# vim-like pane resizing
bind -r C-k resize-pane -U 1
bind -r C-j resize-pane -D 1
bind -r C-h resize-pane -L 1
bind -r C-l resize-pane -R 1
# vim-like pane switching
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
# and now unbind keys
unbind Up
unbind Down
unbind Left
unbind Right
unbind C-Up
unbind C-Down
unbind C-Left
unbind C-Right
# List of plugin:
#set -g @plugin 'tmux-plugins/tpm'
#set -g @plugin 'tmux-plugins/tmux-resurrent'
#set -g @plugin 'tmux-plugins/tmux-yank'
# Init TPM
#run -b '~/.tmux/plugins/tpm/tpm'