-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
33 lines (27 loc) · 926 Bytes
/
.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
# fix ssh agent when tmux is detached
set -g update-environment "DISPLAY SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY"
set-environment -g SSH_AUTH_SOCK $HOME/.ssh/ssh-auth-sock.$HOSTNAME
# pane movement
# remap prefix to Control + a
set -g prefix C-a
setw -g mode-keys vi
unbind C-b
bind C-a send-prefix
# Start window numbering at 1
set-option -g base-index 1
set-window-option -g pane-base-index 1
# Reload config with a key
bind-key r source-file ~/.tmux.conf \; display "Config reloaded!"
# Toggle mouse on with prefix m
bind m \
set -g mouse on \;\
display 'Mouse: ON'
# Toggle mouse off with prefix M
bind M \
set -g mouse off \;\
display 'Mouse: OFF'
# set -g @plugin 'tmux-plugins/tmux-resurrect'
#bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'"
#bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"
#new-session
run-shell ~/tmux-resurrect/resurrect.tmux