-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
46 lines (35 loc) · 1.01 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
# Use true colours
# set -g default-terminal "screen-256color"
set -ga terminal-overrides ",xterm-256color:Tc"
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
# Renumber windows after removing one
set -g renumber-windows on
# Remap prefix to Ctrl+a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# Quick pane cycling
unbind ^A
bind ^A select-pane -t :.+
# more intuitive keybindings for splitting
bind = split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# Set panes to start at 1 instead of 0
set -g base-index 1
setw -g pane-base-index 1
# Vim style pane selection
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Resize pane
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
# Force reload tmux config
unbind r
bind C-r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"