-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
55 lines (41 loc) · 1.66 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
# Rebinding the pane splitting bindings
# unbind % # Remove default bindings since we're replacing
bind | split-window -h
bind - split-window -v
# map Vi movement keys as pane movement keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# and use C-h and C-l to cycle thru panes
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# resize panes using PREFIX H, J, K, L
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
# Syncronize Panes
bind-key S set-window-option synchronize-pane
set-environment -g PATH "/opt/homebrew/bin:/usr/local/bin:/bin:/usr/bin"
set-option -g default-shell $SHELL
# Enable truecolor https://dandavison.github.io/delta/24-bit-color-truecolor.html
set -ga terminal-overrides ",xterm-256color:Tc"
# Reload source file
bind-key r source-file ~/.tmux.conf \; display-message "Configuration reloaded"
# Default theme
# if-shell 'test -f ~/.tmux/tmuxline.conf' 'source ~/.tmux/tmuxline.conf'
# Spaceduck theme
if-shell 'test -f ~/.tmux/spaceduck-theme/status-line-darkPurple.conf' 'source ~/.tmux/spaceduck-theme/status-line-darkPurple.conf'
set-environment -g TMUX_PLUGIN_MANAGER_PATH '~/.tmux/plugins/'
# tmux plugins --------------------------
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'git@github.com/user/plugin'
# set -g @plugin 'git@bitbucket.com/user/plugin'
# # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'