-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtmux.conf
65 lines (49 loc) · 1.91 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
54
55
56
57
58
59
60
61
62
63
64
# Make it possible to send ESC as well as Meta for Evil
set -g escape-time 0
# Display status messages for 2 seconds
set -g status-interval 2
# Set global display-message time
set -g display-time 2000
# Change prefix and bindings to match GNU screen behavior
set -g prefix C-a
unbind C-b
bind C-a send-prefix
bind a send-prefix
bind Escape copy-mode
bind C-n next-window
bind C-p previous-window
bind C-d detach-client
# Other useful bindings:
bind C new-session
# The below is in parity with GNU Screen, emacs users can add a
# similar "emacs" entry to their ~/.tmux.conf
set -g mode-keys vi
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
bind-key -T copy-mode-vi 'y' send-keys -X copy-selection
set -g status-style bold
set -g status-fg "#ffffff"
set -g status-bg blue
set -g status-left-style dim
set -g status-right-style dim
set -g status-left-style fg=white
set -g status-right-style fg="#ffffff"
set -g status-left-length 100 # arbitrary... should be longer?
set -g status-right-length 100 # arbitrary... should be longer?
set -g status-left "#[fg=#ffff00,bold][#(tmix_user_server)#S:]#[default] #(tmix_users) "
set -g status-right "#[fg=white]\"#T\"#[default] #[bold]%b %d @ %l:%M%P %Z"
# Enables terminal title setting. These settings can be overriden in
# your ~/.tmux.conf but common settings are helpful for identifying
# eachothers terminals. If you do have adjustments, we should try to
# share them in common here.
set -g set-titles on
set -g set-titles-string "#(id -un)@#h/#S:"
# It would be best I think if screen256 could work for Emacs.
# Emacs claims no knowledge of the screen256 term type.
#set -g default-terminal screen256
set -g default-terminal xterm-256color
# In tmux 1.7 this becomes an option:
#set -g status-position top
# Fixes Emacs Paredit mode native bindings.
set-window-option -g xterm-keys on
# Without this, the window resizes to the most recent typer... sort-of
set -g window-size smallest