-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf.symlink
104 lines (81 loc) · 2.78 KB
/
tmux.conf.symlink
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Make ESC work right
set -sg escape-time 0
# Make the colors work right
set -g default-terminal "xterm-256color"
set -ga terminal-overrides ",xterm-256color:Tc"
# set window and pane index to 1 (0 by default)
set-option -g base-index 1
setw -g pane-base-index 1
#no more Ctrl-b
unbind-key C-b
# Switch me to ^f, thanks
set-option -g prefix C-f
bind-key f send-prefix
# Source the config file
bind-key -n M-s source-file ~/.tmux.conf\; display-message "source-file done"
# Window Management
bind-key -n M-Right next-window
bind-key -n M-Left previous-window
bind-key -n M-n new-window -c '#{pane_current_path}'
bind-key -n M-Q kill-window
# Creating new panes
bind-key -n M-- split-window -v -c '#{pane_current_path}'
bind-key -n M-= split-window -h -c '#{pane_current_path}'
# Moving around panes
bind-key -n M-j select-pane -D
bind-key -n M-h select-pane -L
bind-key -n M-k select-pane -U
bind-key -n M-l select-pane -R
bind-key -n M-q kill-pane
# Resizing Panes
bind-key -n M-H resize-pane -L 5
bind-key -n M-J resize-pane -D 5
bind-key -n M-K resize-pane -U 5
bind-key -n M-L resize-pane -R 5
# Pane Colors
set -g pane-border-bg "#222222"
set -g pane-border-fg "#999999"
set -g pane-active-border-bg "#222222"
set -g pane-active-border-fg "#cccccc"
# Use VI bindings for window mode keys
set-window-option -g mode-keys vi
# Clock Stuff
bind-key -n M-t clock-mode
set-window-option -g clock-mode-style 12 #12 Hour Clock
set-window-option -g clock-mode-colour "#999999"
# Zoom Commands
bind-key -n M-z resize-pane -Z
# Copy Commands
bind-key -n M-y copy-mode
# Setup 'v' to begin selection as in Vim
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
# Update default binding of `Enter` to also use copy-pipe
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
# General Status Bar
set-option -g status-position top
set -g status-justify centre
set -g status-bg "#555555"
set -g status-fg "#bbbbbb"
# Left/Right Status Bar Text
set -g status-left-length 60
set -g status-left " #h : #S "
set -g status-right " %A, %B %e %Y - %I:%M %p "
# Status Bar Window Styles
set-window-option -g window-status-format " #I: #W "
set-window-option -g window-status-current-format " #I: #W "
set-window-option -g window-status-current-fg green
set-window-option -g window-status-current-bg "#333333"
# Clear
bind-key -n M-c send-keys -t "$pane" "clear" Enter
# Tell tmux to use the system clipboard
set-option -g default-command "reattach-to-user-namespace -l bash"
# Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @resurrect-strategy-vim 'session'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @continuum-restore 'on'
run '~/.tmux/plugins/tpm/tpm'
run-shell ~/clone/path/resurrect.tmux