-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
60 lines (44 loc) · 1.98 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
set -g default-terminal "xterm-256color"
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
bind r source-file ~/.tmux.conf
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
set-option -g history-limit 500000
setw -g mode-keys vi
# Enable mouse pleasantries
set -g mouse on
# Focus events help vim detect when files change with vim's autoread setting
set -g focus-events on
# Allow pbcopy/pbpaste to work in tmux
set -g default-shell $SHELL
#set -g default-command "reattach-to-user-namespace -l ${SHELL}"
## Setup friendly copy/paste for mac
# Setup 'v' and 'y' to begin/copy selection as in Vim
# bind-key -T copy-mode-vi 'v' send -X begin-selection
# bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
# Update default binding of `Enter` to also use copy-pipe
# note: not sure if I need to handle both copy-mode and copy-mode-vi ... /shrug
# unbind-key -T copy-mode Enter
# bind-key -T copy-mode Enter send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
# unbind-key -T copy-mode-vi Enter
# bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
# mouse rebinds
unbind-key -T copy-mode-vi MouseDragEnd1Pane
bind-key -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
# useful styling tips:
# https://github.com/sbernheim4/dotfiles/blob/251a30db0dbbd2953df35bfa0ef43e92ce15b752/tmux/.tmux.conf#L1
set-option -g status-justify left
set-option -g status-style fg=colour203,bg=colour237
set-option -g pane-border-lines heavy
set-option -g pane-border-style fg=colour240
set-option -g pane-active-border-style fg=colour203
set-window-option -g window-status-format "#I: #W "
set-window-option -g window-status-current-format " #I: #W "
setw -g window-status-current-style fg=colour237,bg=colour203,bold
#set-option -g pane-active-border-fg colour67
#set-window-option -g window-status-current-bg colour8
set -sg escape-time 0