-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
78 lines (57 loc) · 2.19 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
set-option -g default-terminal "screen-256color"
# Should be set to whatever is outside TMUX
set-option -sa terminal-overrides ',xterm-256color:RGB'
# set-option -ga terminal-overrides ',tmux-256color:Tc'
set -g history-limit 100000 # scrollback buffer n lines
set -g set-titles-string '#T'
# Don't let processes rename the window
set-option -g allow-rename off
set-option -g focus-events on
# Show pane number to the left (#P)
set -g status-left '#P '
set -g status-right '#[bg=#4e4e4e]#[fg=#ffffff] #{host} '
# set -g status-right '#[bg=#4e4e4e]#[fg=#ffffff] #{host} #( date +" %H:%M ")'
set -g window-status-format '#I #W'
set -g window-status-current-format ' #I #W '
setw -g window-status-current-style 'fg=#55ff55, bg=#000000'
# start windows at window 1
set -g base-index 1
# start panes at 1
set -g pane-base-index 1
# pane border colors
# set -g pane-active-border-style "fg=blue"
# set -g pane-border-style "fg=#555555"
# Remove the repeat-time, i.e. have to type ctrl-b between every command
set -g repeat-time 0
# Show the pane number for a second
set -g display-panes-time 4000
# escape-time led to problems in neovim where
# it took a long time after hitting ESC until vim
# entered normal mode
set -sg escape-time 10
# Force two ctrl-d to EOF
setenv -g 'IGNOREEOF' 2
set -g renumber-windows on
bind-key -r C-Up resize-pane -U 10
bind-key -r C-Down resize-pane -D 10
bind-key -r C-Left resize-pane -L 10
bind-key -r C-Right resize-pane -R 10
bind-key -r k select-pane -U
bind-key -r j select-pane -D
bind-key -r h select-pane -L
bind-key -r l select-pane -R
bind-key -n M-g display-popup -E
set -g mouse on
# Enable SSH Agent forwarding
# see .ssh/rc
set -g update-environment -r
# setenv -g SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock
# Make sure to enable agent forwarding in oh-my-zsh
# zstyle :omz:plugins:ssh-agent agent-forwarding on
setenv -g SSH_AUTH_SOCK /tmp/ssh-agent-$USER-screen
# Enable vi mode
# set editing-mode vi
set-window-option -g mode-keys vi
# Don't scroll to bottom after selecting text with the mouse
# unbind-key -T copy-mode-vi MouseDragEnd1Pane
# bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe