-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
45 lines (34 loc) · 1020 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
42
43
44
45
# reload config file
bind r source-file ~/.tmux.conf
# default to homebrew installed bash
set -g default-shell /usr/local/bin/bash
# do not allow the terminal to rename the window
setw -g allow-rename off
# escape happens immediately
set -sg escape-time 0
# rename window
bind C-r command-prompt 'rename-window %%'
# split panes using \ and -
bind \\ split-window -h
bind - split-window -v
unbind \"
unbind %
# switch panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize panes
bind left resize-pane -L 10
bind down resize-pane -D 10
bind up resize-pane -U 10
bind right resize-pane -R 10
# synchronize panes
bind C-s setw synchronize-panes
# copy to clipboard
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'
# 256 colors
set -g default-terminal 'screen-256color'
set -sa terminal-overrides ',xterm-256color:RGB'
run-shell '${HOME}/.config/tmux/onehalfdark.tmux'