forked from chrishoage/zsh-dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf.local.bak
32 lines (23 loc) · 925 Bytes
/
tmux.conf.local.bak
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
# allow mouse use with tmux:
if-shell "[ `tmux -V | awk '{print ($2 < 2.1)}'` -eq 1 ]" \
'set -g mode-mouse on; set -g mouse-resize-pane on; set -g mouse-select-pane on; set -g mouse-select-window on'
if-shell "[ `tmux -V | awk '{print ($2 >= 2.1)}'` -eq 1 ]" \
'set -g mouse on'
# Start numbering at 1
set -g base-index 1
set -g pane-base-index 1
# Pane traversal
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Window manipulation
bind c new-window -c "#{pane_current_path}"
bind C command-prompt -p "Name of new window: " "new-window -n '%%'"
set-window-option -g window-status-current-bg red
if-shell 'infocmp xterm-256color-italic' \
'set -g default-terminal "xterm-256color-italic"' \
'set -g default-terminal "screen-256color"'
if-shell '[ -f ~/.tmux.conf.local ]' 'source-file ~/.tmux.conf.local'
# broadcast to panes
bind -n C-x setw synchronize-panes