-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
41 lines (30 loc) · 1.08 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
# tmux configuration
# Much of this is shamelessly stolen from jdavis/dotfiles
# Thanks, Joshy!
#
# Core options
#
# Easier prefix
set-option -g prefix C-q
set -g default-terminal "screen-256color"
set -g terminal-overrides 'xterm*:colors=256'
set-option -g status-justify centre
if-shell "test -f ~/personal/dotfiles/vim-renaissance/tmux.conf.statusline" "source-file ~/personal/dotfiles/vim-renaissance/tmux.conf.statusline"
# Vim-like key bindings
setw -g mode-keys vi
if-shell "[[ `tmux -V` =~ ^1[.].* || `tmux -V` =~ ^2[.]0.* ]]" \
'setw -g mouse-mode on; set -g mouse-utf8 off; set -g mouse-select-pane on; set -g mouse-select-window on' \
'setw -g mouse on'
set -g set-titles on
set -g set-titles-string "#T"
# Send command to nested multiplexer
bind-key a send-prefix
# Vim-like pane movements
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# Yay, current path reuse!
bind-key | split-window -h -c "#{pane_current_path}"
bind-key \ split-window -c "#{pane_current_path}"
bind-key c new-window -c "#{pane_current_path}"