forked from nickdiego/magic-dot-files
/
.tmux.conf
50 lines (38 loc) · 1.54 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
# Change to Screen's ctrl-a escape sequence
source /usr/share/doc/tmux/examples/screen-keys.conf
# Use default vim keybindings
source /usr/share/doc/tmux/examples/vim-keys.conf
# Use powerline configuration
source ~/.powerline/powerline/bindings/tmux/powerline.conf
# -r: can be repeated without pressing prefix
# again (500ms after last '-r' action or prefix)
bind -r < resize-pane -L 1
bind -r > resize-pane -R 1
bind -r - resize-pane -D 1
bind -r + resize-pane -U 1
# reload config without killing server
bind r source-file ~/.tmux.conf \; display-message " Config reloaded..."
set -g status on
set -g status-interval 2
set -g status-utf8 on
set -g status-justify "centre"
set -g status-left-length 90
set -g status-right-length 90
set -g set-titles on
set -g set-titles-string '#(whoami)@#H - tmux (#S) - #W'
set -g history-limit 10000
set -g clock-mode-style 24
set -g mode-keys vi
# Set the esc/alt disambiguation timeout to 50ms. The default is half a second,
# which makes vim kind of painful.
set-option -sg escape-time 50
# The following helps with Shift-PageUp/Shift-PageDown
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
set-window-option -g aggressive-resize on
# to make ctrl-arrow, etc. work
set-window-option -g xterm-keys on
# Copy the current shell env vars to the tmux session
set -ga update-environment "DISPLAY DBUS_SESSION_BUS_ADDRESS SESSION_MANAGER GPG_AGENT_INFO GNOME_KEYRING_CONTROL"
# Must set default-command to $SHELL, in order to not source ~/.profile
# BUG: Should *not* hardcode /bin/bash here
set -g default-command $SHELL