blob: a8d935de700082b0ddec1e496f08681c4bc84ec1 (
plain)
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
|
# set the prefix to C-A
unbind C-b
set -g prefix C-a
bind C-a send-prefix
set -g default-terminal "tmux-256color"
set -g aggressive-resize on
set -g set-titles on
set -g mode-keys vi
set -g xterm-keys on
# -,| do a horizontal/vertical split
unbind-key %
unbind-key '"'
bind - split-window -v -c '#{pane_current_path}'
bind | split-window -h -c '#{pane_current_path}'
# spawn new shells in the current path
bind c new-window -c '#{pane_current_path}'
set-option -g history-limit 16384
set-option -g update-environment "\
DISPLAY\
SSH_ASKPASS\
SSH_AUTH_SOCK\
SSH_AGENT_PID\
SSH_CONNECTION\
WINDOWID\
XAUTHORITY\
DBUS_SESSION_BUS_ADDRESS\
"
set -g status-right "#(hostname -f) %a %F %H:%M"
set -g status-right-length 48
set -g status-style fg=white,dim,bg=colour23
# source the machine-specific file
if-shell "[ -f ~/.config/tmux_local.conf ]" 'source ~/.config/tmux_local.conf'
|