-
Notifications
You must be signed in to change notification settings - Fork 2
/
.tmux.conf
56 lines (40 loc) · 1.65 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
# plugin manager
# rebind the prefix key
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# True Color
set -as terminal-features ",xterm-256color:RGB"
# save path between panes
bind-key c new-window -c "#{pane_current_path}"
set -g pane-border-style fg=colour8
set -g pane-active-border-style "bg=default fg=green"
set -g window-status-current-style fg=white,bg=default
set -g default-shell /bin/zsh
set -g default-command /bin/zsh
bind-key [ split-window -h -c "#{pane_current_path}"
bind-key ] split-window -v -c "#{pane_current_path}"
# clear screen
bind -n C-k send-keys -R \; clear-history
# status gaff
set -g status-right-length 255
set -g status-style fg=green,bg=default
# mouse mode
set -g mouse on
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'jbnicolai/tmux-fpp'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# clipboard
#set-clipboard external
#clipboard_control write-clipboard write-primary
set-option -g status-interval 5
set-option -g automatic-rename on
set-option -g automatic-rename-format '#{b:pane_current_path}'
set-window-option -g window-status-current-format '#[fg=white,bold]** #{window_index} #[fg=green]#{pane_current_command} #[fg=blue]#(echo "#{pane_current_path}" | rev | cut -d'/' -f-3 | rev) #[fg=white]**|'
set-window-option -g window-status-format '#[fg=white,bold]#{window_index} #[fg=green]#{pane_current_command} #[fg=blue]#(echo "#{pane_current_path}" | rev | cut -d'/' -f-3 | rev) #[fg=white]|'
set -g mode-style 'reverse'
set -sg escape-time 0