-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path_tmux.conf
42 lines (30 loc) · 1.09 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
# Sane scrolling
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# ctrl + arrow move window/pane
bind -n C-left previous-window
bind -n C-right next-window
bind -n C-down select-pane -D
bind -n C-up select-pane -U
# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-left '#[fg=green]#H'
# Highlight active windows
set -g window-status-current-style bg=red
# Set window notifications
setw -g monitor-activity on
set -g visual-activity on
# Bindings for vertical + horizontal splits
unbind %
bind | split-window -h
bind - split-window -v
# Base for numbering is 1, not 0
set -g base-index 1
# Sending tmux's buffer to X buffer
bind-key > send-keys 'Enter' \; save-buffer /tmp/.tmux-exchange \; run-shell 'xsel -i < /tmp/.tmux-exchange; xsel -i -b < /tmp/.tmux-exchange'
bind-key H pipe-pane -o 'cat >>$HOME/#W-tmux.log' \; display-message 'Toggled logging to $HOME/#W-tmux.log'
# a window is only constrained in size if a smaller client is actively looking at it
setw -g aggressive-resize on
# C-b is not acceptable -- Vim uses it
set-option -g prefix C-a
#bind-key C-a last-window