-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
101 lines (77 loc) · 2.45 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
##############################################################
# Global settings.
# reverting to bash for now until I configure powerlevel10k
# if-shell 'which zsh' "set -g default-shell /usr/bin/zsh"
set -g history-limit 100000
# 256-color mode.
set -g default-terminal "screen-256color"
# Switch the prefix to Alt-` since Ctrl-b interferes with Vim.
set -g prefix `
unbind C-b
bind-key ` send-prefix
# Change the default input delay in order to improve Vim
# performance.
set -sg escape-time 0
# Number windows and panes starting at 1 so that we can jump to
# them easier.
set -g base-index 1
set -g pane-base-index 1
# vi mode.
set -g mode-keys vi
set -g status-keys vi
#do not resize windows based on smallest client
setw -g aggressive-resize on
# ##############################################################
# Key bindings.
#
# Reload .tmux.conf with "r".
# bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Split windows with a more visual set of characters.
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# Select panes with vi-style movement commands.
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Resize panes with vi-style movement commands.
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
# Enable/disable mouse mode (tmux 2.1 and above)
set -g mouse on
# Copy mode vi
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
# Enable mouse control (clickable windows, panes, resizable panes (tmux 2.0 and below)
# set -g mouse-select-window on
# set -g mouse-select-pane on
# set -g mouse-resize-pane on
# don't rename windows automatically
set-option -g allow-rename off
# panes
set -g pane-border-style fg=white,bg=black
set -g pane-active-border-style fg=cyan,bg=black
########## Status bar #####
set-option -g status-style fg=black,bg=green
set -g status-left-style fg=black,bg=green
set -g status-right-style fg=black,bg=green
set-window-option -g window-status-current-style fg=black,bg=blue
set -g status-left-length 40
set -g status-left "[#I:#W] "
set -g status-right "[#S] [#h] [%H:%M %Y-%m-%d]"
###### Status bar special variables reference ####
#(date) shell command
#I window index
#S session name
#W window name
#F window flags
#H Hostname
#h Hostname, short
#D pane id
#P pane index
#T pane title