-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
89 lines (66 loc) · 2.07 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
79
80
81
82
83
84
85
86
87
88
89
# remap prefix to Control + a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# Send prefix in nested sessions
bind a send-prefix
# Splits
bind - split-window -v
bind | split-window -h
# Mouse mode for selection
set-option -g mouse on
# Quick pane cycling
unbind ^A
bind ^A select-pane -t :.+
# Quick session swapping
bind s choose-tree
# Window notifications
setw -g monitor-activity on
set -g visual-activity on
# Automatically rename window title
setw -g automatic-rename on
# My number keys start at 1, so start indexes at 1
set -g base-index 1
# Keep key env variables around
set -g update-environment -r
# Set window titles
set -g set-titles on
set -g set-titles-string 'tmux: #{pane_current_command} - #T'
### isomorphic-copy copy/paste
bind -T copy-mode MouseDragEnd1Pane \
send-keys -X stop-selection
bind -T copy-mode MouseDown1Pane \
select-pane \;\
send-keys -X copy-pipe "c" \;\
send-keys -X clear-selection
#### Tmux Plugin Manager
## Plugin Options
set -g @continuum-restore 'on'
set -g @continuum-save-interval '60'
# Themes
set -g @plugin 'jimeh/tmux-themepack'
set -g @themepack "powerline/default/cyan"
# Dim inactive windows
set -g window-style 'fg=colour247,bg=black'
set -g window-active-style 'fg=colour250,bg=black'
set -g pane-border-style 'fg=colour38,bg=colour233'
set -g pane-active-border-style 'fg=colour38,bg=colour233'
## List of plugins
# Official plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-logging'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
# Third-party awesome
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'laktak/extrakto'
set -g @extrakto_grab_area 'window full'
set -g @extrakto_split_direction 'v'
# Custom bg color by hostname
#run "~/bin/hostname-color --tmux"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'