-
Notifications
You must be signed in to change notification settings - Fork 2
/
tmux.conf
50 lines (47 loc) · 2.02 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
# General Settings
set -g default-terminal "tmux-256color"
set -sa terminal-overrides ',xterm-256color:RGB'
set -g mouse on
set -g focus-events on
set -g status on
set -g status-interval 2 # Updates every other second
set -g pane-active-border-style fg=colour245 # light-grey
set -g pane-border-style fg=colour235 # dark-grey
set -g renumber-windows on # Useful when closing windows
set -g base-index 1 # Start counting windows at 1
set -g history-limit 100000 # scrollback, default was 2000
set -g set-titles on # set the terminal window title
set -g set-titles-string "[#S] #T" # format the title
set -sg escape-time 10 # make ESC faster in nvim
# Keybindings
set -g prefix C-a # use screen's ctrl+a binding
unbind-key C-b
unbind-key b
bind-key a send-prefix # 'ctrl+a a' should send 'ctrl+a'
bind-key y setw synchronize-panes
bind-key s choose-tree
# Navigate between panes
bind-key -r k select-pane -U
bind-key -r j select-pane -D
bind-key -r h select-pane -L
bind-key -r l select-pane -R
# Resize Panes
bind-key -r C-k resize-pane -U
bind-key -r C-j resize-pane -D
bind-key -r C-h resize-pane -L
bind-key -r C-l resize-pane -R
# Resize Panes Quickly
bind-key -r M-k resize-pane -U 5
bind-key -r M-j resize-pane -D 5
bind-key -r M-h resize-pane -L 5
bind-key -r M-l resize-pane -R 5
# Try to use the current pane's directory when opening a new pane/window
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# Powerline
set-option -g status-left-length 60
set-option -g status-right-length 90
set-option -g status-left "#(~/.config/bgw-common/tmux-powerline/powerline.sh left)"
set-option -g status-right "#(~/.config/bgw-common/tmux-powerline/powerline.sh right)"
set-hook -g session-created 'run-shell "~/.config/bgw-common/tmux-powerline/powerline.sh init"'