-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
37 lines (27 loc) · 978 Bytes
/
.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
set-window-option -g mode-keys vi
# increase the buffer scrollback limit
set -g history-limit 5000
# Make new pane creation use current working directory
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# Set the default shell when tmux starts
set-option -g default-shell /bin/zsh
# Tmux should be pretty, we need 256 color for that
set -g default-terminal "screen-256color"
# Tmux uses a 'control key', let's set it to 'Ctrl-a'
# Reason: 'Ctrl-a' is easier to reach than 'Ctrl-b'
set -g prefix C-a
unbind C-b
# Send tmux prefix to contained applications
bind C-a send-prefix
# Bind movement keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# command delay? We don't want that, make it short
set -sg escape-time 1
# Allow us to reload our Tmux configuration while
# using Tmux
bind r source-file ~/.tmux.conf \; display "Reloaded!"