-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
125 lines (100 loc) · 4.27 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# fix accidently typing accent characters, etc.
# by forcing the terminal to not wait around
# (every single tmux file should have this)
set -sg escape-time 0
set -g focus-events
# -- base ----------------------------------------------------------------
# set-option -g default-shell /opt/homebrew/bin/bash
# set -g default-terminal "xterm-256color"
# set -g default-terminal "screen-256color"
# set -ga terminal-overrides ",xterm-256color*:Tc"
# set -g default-terminal "xterm-24bit"
# set -g terminal-overrides ',xterm-24bit:Tc'
set -g default-terminal "tmux-256color"
# set -g default-terminal "xterm-256color-italic"
set -ga terminal-overrides ",*256col*:Tc"
set-option -sa terminal-overrides ",xterm*:Tc"
set -g base-index 1
set-window-option -g automatic-rename on
set-option -g set-titles on
setw -g aggressive-resize on
set -g history-limit 30000
set-option -g mouse on
set-option -gq mouse-utf8 on
set -as terminal-overrides ",*:U8=0"
# set -g terminal-overrides 'xterm*:smcup@:rmcup@'
set -g status-interval 1
setw -g mode-keys vi
set -g status-keys vi
set -g repeat-time 200
# -- bind -----------------------------------------------------------------
# bind c copy-mode
# bind v paste-buffer
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
unbind x
bind x new-window -c "#{pane_current_path}"
unbind _
bind _ split-window -h -c "#{pane_current_path}"
unbind -
bind - split-window -v -c "#{pane_current_path}"
bind b select-pane -t :.+
bind C-h select-pane -L
bind C-j select-pane -D
bind C-k select-pane -U
bind C-l select-pane -R
unbind q
bind q killw
# bind q confirm-before "kill-session "
bind r source-file $DOTFILES/shared/tmux/.tmux.conf \; display "Fresh Tmux!"
# -- look -----------------------------------------------------------------
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-window-option -g monitor-activity off
set-option -g bell-action none
setw -g clock-mode-colour "#cce04a"
set -g mode-style bg=colour234,fg=colour198,bright
# -- panes ---------------------------------------------------------------
setw -g pane-border-status off
set -g pane-active-border-style bg=default,fg="#f81ce6"
set -g pane-border-style bg=default,fg=colour234
# -- statusbar ----------------------------------------------------------
set -g status on
set -g status-position bottom
set -g status-justify left
set -g status-style "fg=#eeeeee,bg=#121212,dim"
set -g status-left ''
set -g status-left-style "fg=#3a3a3a,bg=#121212,bold"
set -g status-left-length 75
set -g status-right '%s %Z%0z #(uptime | cut -f 5-6 -d " " | cut -f 1 -d ",")'
set -g status-right-style "fg=#3a3a3a,bg=#121212,bold"
set -g status-right-length 75
# -- window -------------------------------------------------------------
# set -g window-style style
# set -g window-active-style style
# set -g window-status-activity-style style
# set -g window-status-last-style style
set -g window-status-current-style bg=colour233,fg=colour237,none
setw -g window-status-current-format ' #I#[fg=colour237]:#[fg=colour165]#W#[fg=colour237]#F '
set -g window-status-style bg=colour233,fg=colour241,none
setw -g window-status-format ' #T-#I#[fg=colour237]:#[fg=colour241]#W#[fg=colour241]#F '
set -g window-status-bell-style bg=colour1,fg=colour255,bold
# -- message -----------------------------------------------------------
set -g message-style bg=colour233,fg=colour208,bold
set -g message-command-style bg=colour233,fg=colour208,bold
# -- selection -----------------------------------------------------------
set-option -g mode-style bg="#f81ce6",fg="#61175b",bold
#TMUX_FZF_LAUNCH_KEY="C-f"
#TMUX_FZF_POPUP=1
# very unique Mac bug
if-shell "type 'reattach-to-user-namespace' >/dev/null" "set -g default-command 'reattach-to-user-namespace -l $SHELL'"
# -- plugin ---------------------------------------------------------------
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'sainnhe/tmux-fzf'
# git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
## MUST END WITH USE CRTL+B + I to install the plugin or + alt-U to uninstall
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'