-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
46 lines (33 loc) · 1.18 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
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
set-option -g status-position top
set-option -g status-keys vi
set-option -g history-limit 100000
set -g base-index 1
unbind '"'
unbind %
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
# Disable mouse control, and allow vim full access
set -g mouse on
# We don't use tmux copy/paste
set -g set-clipboard on
# Fix colors in vim
set -g default-terminal 'tmux-256color'
set -as terminal-overrides ',xterm*:Tc:sitm=\E[3m,Ms=\\E]52;%p1%s;%p2%s\\007'
set-option -g focus-events on
set -g exit-unattached off
set -g destroy-unattached off
set -sg escape-time 10 # Fix esc in vim
# Allow vim, bash, etc to set the term title
set-window-option -g allow-rename on
set-window-option -g automatic-rename off
set-option -g set-titles on
set-option -g set-titles-string "#T"
set-window-option -g xterm-keys on
# fix ssh agent when tmux is detached
# http://blog.mcpolemic.com/2016/10/01/reconciling-tmux-and-ssh-agent-forwarding.html
set -g update-environment "SSH_AUTH_SOCK" # This might break it?
setenv -g SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock