-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.tmux.conf
54 lines (38 loc) · 1.41 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
42
43
44
45
46
47
48
49
50
51
52
53
# Tmux configuration
# C-b is weird, let's use screen's C-a
set-option -g prefix C-a
# repeating C-a switches windows like in screen
bind-key C-a last-window
# Start numbering at 1
set -g base-index 1
# Allows for faster key repetition
set -s escape-time 0
# Set status bar
set -g status-bg black
set -g status-fg green
set -g status-left ""
set -g status-right "#h #[fg=green]"
# make 256 color configs play nicely
set -g default-terminal "screen-256color"
# Rather than constraining window size to the maximum size of any client
# connected to the *session*, constrain window size to the maximum size of any
# client connected to *that window*. Much more reasonable.
setw -g aggressive-resize on
# Allows us to use C-a a <command> to send commands to a TMUX session inside
# another TMUX session
bind-key a send-prefix
# Highlight active window
setw -g window-status-current-style bg=green,fg=black
# Moar history
set -g history-limit 100000
# Maximize / minimize pane with dash
bind-key - resize-pane -Z
# copy & paste between tmux and x clipboard
bind C-p run-shell -b "tmux set-buffer \"$(xsel -ob)\"; tmux paste-buffer"
bind C-y run-shell -b "tmux show-buffer | xsel -ib"
# press 'y' (yank) when in copy mode to send to X clipboard
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
# set xterm title appropriately
set -g set-titles on
# xterm mode
set-window-option -g xterm-keys on