-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
64 lines (53 loc) · 2.24 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
# Use vim keybindings in copy mode
setw -g mode-keys vi
# Setup 'v' to begin selection as in Vim
unbind -T copy-mode-vi 'v'
unbind -T copy-mode-vi 'y'
unbind -T copy-mode-vi MouseDragEnd1Pane
unbind -T copy-mode-vi Enter #this is the default binding for copy (but not to system clipboard)
#(many tried, only this worked)
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
bind-key -T copy-mode-vi 'y' send-keys -X copy-pipe-and-cancel 'pbcopy'
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel 'pbcopy'
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel 'pbcopy'
#general other stuff
#set -g default-terminal "screen-256color"
#set -g default-terminal "tmux-256color"
#set -ga terminal-overrides ",*256col*:Tc"
#set -g default-terminal "xterm-256color"
#set -g default-terminal "xterm"
#set -g default-terminal "screen.xterm-256color"
set -ga terminal-overrides ",*256col*:Tc"
set -g default-terminal "screen-256color"
set -g mouse on
set-window-option -g mode-keys vi
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-pain-control'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin '[email protected]:user/plugin'
# set -g @plugin '[email protected]:user/plugin'
set -g pane-border-style fg=magenta
set -g pane-active-border-style "bg=default fg=#a18daf"
# Theme - Status line
#set -g status-style default
#set -g status-right-length 80
#set -g status-left-length 100
set -g window-status-separator ""
set -g window-status-format '#[fg=#2f3d4d,bg=#191c25] #I. #W#F '
set -g window-status-current-format '#[bg=#ff85b8,fg=colour16] ☠️ #W#F '
#set-option -sa terminal-overrides ",xterm*:Tc"
#set -g default-terminal "xterm-256color"
#set-option -ga terminal-overrides ",xterm-256color:Tc"
set -g status-left-length 40
set -g status-right-length 60
set -g status-position bottom
set -g status-fg white
set -g status-bg "#191c25"
set -g status-left '#[bg=#57C7FF,fg=colour16,bold] #S » #I #P '
set -g status-right '#[bg=#a18daf,fg=colour235,bold] %Y/%m/%d %H:%M:%S #[default]'
set-window-option -g mode-keys vi
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'