-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
41 lines (32 loc) · 1.6 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
# Options
# Enable mouse mode
set -g mouse on
# Expand windows as much as possible when available
set-window-option -g aggressive-resize on
# Renumber windows after closing any
set -g renumber-windows on
# No bells at all
set -g bell-action none
# OS X Reattach to namespace
if-shell "uname | grep -q Darwin" "set -g default-command \"reattach-to-user-namespace -l /bin/zsh\""
# Status bar
set -g status-left ''
set -g status-right ' #{?client_prefix,#[reverse]<Prefix>#[noreverse] ,} %H:%M (%Y-%m-%d)'
# Key bindings
bind c new-window -c "#{pane_current_path}" # Open new window with current directory
bind % split-window -h -c "#{pane_current_path}" # Open a new horizontal split with current directory
bind '"' split-window -v -c "#{pane_current_path}" # Open a new vertical split with current directory
bind m run "if [[ `tmux show-options -g | grep 'mouse.*on'` ]]; then toggle=off; else toggle=on; fi; tmux display-message \"mouse tmux: \$toggle\"; tmux set-option -g mouse \$toggle" # Toggle mouse mode
bind r source-file ~/.tmux.conf # Reload config
bind z resize-pane -Z # Zoom pane
bind-key -n C-S-Left swap-window -t -1 # Move window left
bind-key -n C-S-Right swap-window -t +1 # Move window right
bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'" # Join panes from
bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'" # Join panes to
bind-key b break-pane # Break panes
bind-key a set-window-option synchronize-panes # Sycronize panes
# Style
set -g default-terminal "screen-256color" # Fancy Colors
# Scrollback
set -g history-limit 10000
# vim: filetype=config noexpandtab