-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
41 lines (33 loc) · 868 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
37
38
39
40
41
# Misc Settings
set -g default-terminal "screen-256color"
set -g base-index 1
set -g mode-keys vi
# macOS stuff
if-shell '[[ $(uname -s) == Darwin ]]' {
bind-key -T copy-mode-vi 'y' send-keys -X copy-pipe-and-cancel "pbcopy"
}
# Bindings
# set the prefix to C-a like screen
set -g prefix C-a
unbind C-b
bind-key a send-prefix
# enable mouse
set-option -g -q mouse on
# reload
bind-key r source-file ~/.tmux.conf
# Panes
# splits with keys I'll remember
bind-key - split-window -v -c "#{pane_current_path}"
bind-key \\ split-window -h -c "#{pane_current_path}"
# nav
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# resizing
bind-key -r C-h resize-pane -L
bind-key -r C-j resize-pane -D
bind-key -r C-k resize-pane -U
bind-key -r C-l resize-pane -R
# Windows
bind c new-window -c "#{pane_current_path}"