-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
56 lines (44 loc) · 1.5 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
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
set-option -g xterm-keys on
# tell Tmux that outside terminal supports true color
#set -ga terminal-overrides ",xterm-256color*:Tc"
#set -ga terminal-overrides ',*:Ss=\E[%p1%d q:Se=\E[2 q'
set -g default-shell /bin/zsh
set -g mouse on
set-window-option -g automatic-rename on
set-option -g set-titles on
# Use | and - to split a window vertically and horizontally instead of " and % respoectively
unbind '"'
unbind %
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
unbind C-b
set-option -g prefix C-s
bind-key C-s send-prefix
# Use shift + arrow key to move between windows in a session
bind -n S-Left previous-window
bind -n S-Right next-window
# Pane switching with ALT + arrows
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
# Status bar.
set -g status-fg '#EFF1F5'
set -g status-bg '#1e1e2e'
set -g status-left-length 40
set -g status-left '#[fg=#EFF1F5] ⧉ '
# set -g status-right "#[fg=yellow]$USER #[fg=magenta]%l:%M %p"
set -g status-right ""
set -g status-interval 60 # Default is 15.
# Automatically renumber window numbers on closing a pane (tmux >= 1.7).
set -g renumber-windows on
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
set -sg escape-time 10
###
# Ctrl + S + W -> preview list of opened tabs
# Ctrl + S + $ - rename tab
# https://tmuxcheatsheet.com