-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
42 lines (34 loc) · 1.15 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
# assume 256 color mode
#set-option -sa terminal-overrides ",xterm*:Tc"
set -g default-terminal "${TERM}"
set -ga terminal-overrides ",alacritty:Tc"
# set history limit
set-option -g history-limit 10000
# start new window in same path
bind c new-window -c "#{pane_current_path}"
# change prefix to c-space
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
# reload the config file with r
unbind r
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
# count from 1 and reorder
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
# split windows using | and -
bind \\ split-window -h -c '#{pane_current_path}'
bind - split-window -v -c '#{pane_current_path}'
# status bar
set -g status-fg colour7
set -g status-bg colour0
set -g status-left ''
set -g status-right ''
set -g window-status-current-style 'fg=black bg=white'
set-window-option -g window-status-format " #I #{b:pane_current_path} "
set-window-option -g window-status-current-format " #I #{b:pane_current_path} "
# split borders
set -g pane-border-style fg=colour7
set -g pane-active-border-style "bg=default fg=blue"