forked from amarshall/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtmux.conf
35 lines (27 loc) · 1.11 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
set -g default-terminal "screen-256color"
if '[[ "$COLORTERM" == "truecolor" ]]' 'set-option -ga terminal-overrides ",xterm-256color:Tc"' ''
set -g prefix C-t
unbind C-b
bind C-t send-prefix
set -sg escape-time 50
set -g mouse on
bind -T root PPage if-shell -F "#{alternate_on}" "send-keys PPage" "copy-mode -e; send-keys PPage"
bind -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
bind -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
bind -T copy-mode PPage send -X page-up
bind -T copy-mode NPage send -X page-down
bind -T copy-mode WheelUpPane send -X scroll-up
bind -T copy-mode WheelDownPane send -X scroll-down
set -g base-index 1
set -g pane-base-index 1
set -g renumber-windows on
set-window-option -g window-status-current-bg red
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind S-Left swap-window -t -1
bind S-Right swap-window -t +1
bind o resize-pane -Z