-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
110 lines (92 loc) · 4.56 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
# set -g @plugin 'seebi/tmux-colors-solarized'
set -g @plugin 'jimeh/tmux-themepack'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# prefix-Space to quick-copy things to tmux clipboard (paste with `prefix-]` )
set -g @plugin 'fcsonline/tmux-thumbs'
set -g @thumbs-reverse enabled # Shorter options near the bottom
set -g @thumbs-unique enabled # same strings get same copy button
set -g @thumbs-regexp-1 '\b[a-f0-9]{2}/[a-f0-9]{6,}\b' # Match nextflow workdirs from trace.txt files
run-shell ~/.tmux/plugins/tmux-thumbs/tmux-thumbs.tmux
set -g @resurrect-processes 'vi vim nvim emacs man less more tail top htop irssi weechat mutt lvim'
# FZF control of tmux
set -g @plugin 'sainnhe/tmux-fzf'
# 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 @colors-solarized 'base16'
set -g @themepack 'powerline/double/orange'
bind -r C-h run "tmux select-pane -L"
bind -r C-j run "tmux select-pane -D"
bind -r C-k run "tmux select-pane -U"
bind -r C-l run "tmux select-pane -R"
# bind -r C-\ run "tmux select-pane -l"
#set -g default-terminal "tmux-256color"
#set -g default-terminal "xterm-256color"
#set-option -sa terminal-overrides ',*xterm*:Tc'
#set -sa terminal-overrides ",xterm-kitty:RGB"
set -ga terminal-overrides ",tmux-256color:RGB,xterm-kitty:Tc,xterm-256color:RGB"
#set -ga terminal-overrides ",*256col*:Tc"
#set -ga terminal-overrides ",*kitty*:Tc"
set-option -g mouse on
# Set zoomed-in pane background differently
set-hook -g after-resize-pane 'if "[ #{window_zoomed_flag} -eq 1 ]" "run \"tmux select-pane -P bg=colour236\"" "run \"tmux select-pane -P bg=\""'
## set -g default-terminal "screen-256color"
#
## smart pane switching with awareness of vim splits
#bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L"
#bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"
#bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U"
#bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"
#bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l"
#
#set-window-option -g mode-keys vi
#
### act like vim
#setw -g mode-keys vi
## bind h select-pane -L
## bind j select-pane -D
## bind k select-pane -U
## bind l select-pane -R
## bind-key -r C-h select-window -t :-
## bind-key -r C-l select-window -t :+
## #unbind [
## #bind ` copy-mode
## #unbind p
## #bind p paste-buffer
## bind -t vi-copy v begin-selection
## bind -t vi-copy y copy-selection
#
## This tmux statusbar config was created by tmuxline.vim
## on Tue, 01 Jul 2014
## set -g status-justify "left"
## set -g status "on"
## set -g status-left-style "none"
## set -g message-command-style "fg=colour253,bg=colour16"
## set -g status-right-style "none"
## set -g pane-active-border-style "fg=colour144"
## set -g status-utf8 "on"
## set -g status-style "bg=colour67,none"
## set -g message-style "fg=colour253,bg=colour16"
## #set -g pane-border-style "fg=colour16"
## set -g pane-border-style "fg=colour131"
## set -g status-right-length "100"
## set -g status-left-length "100"
## setw -g window-status-activity-attr "none"
## setw -g window-status-activity-style "fg=colour144,bg=colour67,none"
## setw -g window-status-separator ""
## setw -g window-status-style "fg=colour253,bg=colour67,none"
## set -g status-left "#[fg=colour232,bg=colour144] #S #[fg=colour144,bg=colour67,nobold,nounderscore,noitalics]>"
## set -g status-right "#[fg=colour16,bg=colour67,nobold,nounderscore,noitalics]>#[fg=colour253,bg=colour16] %Y-%m-%d %H:%M #[fg=colour144,bg=colour16,nobold,nounderscore,noitalics]>#[fg=colour232,bg=colour144] #h "
## setw -g window-status-format "#[fg=colour253,bg=colour67] #I >#[fg=colour253,bg=colour67] #W "
## setw -g window-status-current-format "#[fg=colour67,bg=colour16,nobold,nounderscore,noitalics]>#[fg=colour253,bg=colour16] #I >#[fg=colour253,bg=colour16] #W #[fg=colour16,bg=colour67,nobold,nounderscore,noitalics]>"
#
## Let vim be fast
#set-option -s escape-time 10
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'