-
Notifications
You must be signed in to change notification settings - Fork 2
/
tmux.conf
89 lines (67 loc) · 2.43 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
#.tmux.conf
#encoding
#set-window-option -g utf8 on
#prefix key
unbind-key C-b
set-option -g prefix C-t
bind-key C-t send-prefix
set -g default-terminal "tmux-256color"
if 'test $(uname -s) == "Darwin"' 'set -g default-terminal "${TERM}"'
set -ga terminal-overrides ",*256col*:Tc"
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'
#vim-like keybind
set-window-option -g mode-keys vi
#vim-like pane selecting
unbind-key l
bind-key -r h select-pane -L
bind-key -r j select-pane -D
bind-key -r k select-pane -U
bind-key -r l select-pane -R
#View
set-option -g status-bg colour8
set-option -g status-fg black
set-option -g status-left "#[bg=blue,fg=white,bold] [#I] #[default] "
set-option -g status-right "#[bg=blue,fg=white,bold] [#(whoami)@#(hostname -s)] #[default]"
set-option -g pane-border-status bottom
set-option -g pane-border-format "#[fg=blue,bg=default] [#P] #(~/.dotfiles/resources/tmux-pane-status.sh '#{pane_current_path}')"
set -g pane-border-style bg=default
set -g pane-active-border-style bg=default
#window-status
set-window-option -g window-status-format "#I:#W"
set -g window-status-style fg=black,bg=colour8
#active window status
set-window-option -g window-status-current-format " [#I:#W] "
set -g window-status-current-style fg=white,bg=blue,bold,underscore
set -g window-style 'bg=default'
set -g window-active-style 'bg=default'
set -g pane-border-style 'none'
set -g pane-active-border-style 'none'
#clock
set-window-option -g clock-mode-colour cyan
set-window-option -g clock-mode-style 24
set-option -g status-right-length 90
#interval
set-option -g status-interval 60
#reload .tmux.conf
bind r source-file ~/.tmux.conf\; display-message "Reload Config"
#mouse support
#set-option -g mode-mouse on
set-option -g mouse on
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'"
bind-key o run "zsh -ci ftp"
#individual configures
if 'test $(uname -s) == "Darwin"' 'set-option -g default-command "reattach-to-user-namespace -l zsh"'
#for neovim response
set -g escape-time 0
#tmux plugin manager
set -g @tpm_plugins " \
tmux-plugins/tpm \
tmux-plugins/tmux-resurrect \
tmux-plugins/tmux-continuum \
tmux-plugins/tmux-yank \
Morantron/tmux-fingers \
"
set -g @resurrect-save 'S'
set -g @resurrect-restore 'R'
run '~/.tmux/plugins/tpm/tpm'