-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtmux.conf
57 lines (44 loc) · 1.51 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
# remap prefix from 'C-b' to 'C-q'
unbind C-b
set -g prefix C-q
bind-key C-q send-prefix
# no delay for escape key press
set -sg escape-time 0
# attempt to set the client terminal title
set -g set-titles on
# improve colors
set -g default-terminal "screen-256color"
# set a bigger scrollback buffer
set -g history-limit 100000
# enable mouse mode
set -g mouse on
# split panes using | and -
bind | split-window -h -c '#{pane_current_path}'
bind - split-window -v -c '#{pane_current_path}'
unbind '"'
unbind %
# status bar
set -g status-bg 'black'
set -g status-fg '#676965'
set -g status-left-length 40
set -g status-left '#[fg=blue]#S ⧉ '
set -g status-right "#[fg=blue]%H:%M#[default]"
# start at 1 instead of 0
set -g base-index 1
set-window-option -g pane-base-index 1
# maintain a “gapless” sequence
set -g renumber-windows on
# automatically set window title
set-window-option -g automatic-rename on
set-window-option -g automatic-rename-format '#{b:pane_current_path}'
# notify when a window has activity (by adding white-ish background to the
# window in the status bar, see below)
set-window-option -g monitor-activity on
# active window title colors
set-window-option -g window-status-current-style fg=white,bg=default
# make sure we use vi bindings for copy/paste all the time.
set-window-option -g mode-keys vi
# reload config file
bind r source ~/.tmux.conf\; display "~/.tmux.conf sourced!"
# reset to a sensible layout across machines and terminal dimensions
bind = run-shell "~/projects/dotfiles/tmux/layout.sh"