-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tmux.conf
More file actions
38 lines (28 loc) · 1.05 KB
/
.tmux.conf
File metadata and controls
38 lines (28 loc) · 1.05 KB
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
# Set prefix to C-z
set-option -g prefix C-z
# Move send-prefix to a
unbind-key C-b
bind-key a send-prefix
# Make C-z last-window (in addition to l), disable suspend-client.
bind-key C-z last-window
# Make it easier to renumber/move windows.
bind-key -n C-S-Left swap-window -t -1
bind-key -n C-S-Right swap-window -t +1
# For reasons I don't fully understand, this allows tmux attach to work even
# when there's no terminal, but it also doesn't seem to create too many
# sessions.
#new-session
# Status (http://justinlilly.com/dotfiles/tmux.htmltmux)
set -g status-bg black
set -g status-fg green
set -g status-left-length 20
set -g status-left ' #[fg=cyan,bright]#10H#[fg=green]:#[fg=white]#S#[fg=green] | #[default]'
set -g status-right '| #[fg=yellow]%y-%m-%d %H:%M '
set -g status-justify centre
set -g history-limit 100000
set-window-option -g aggressive-resize on
# 0 is hard to reach
set-option -g base-index 1
# Set TERM properly for curses applications to work correctly.
# https://github.com/tmux/tmux/wiki/FAQ
set -g default-terminal "tmux-256color"