forked from anishathalye/dotfiles_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
58 lines (46 loc) · 1.73 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
# inspired by https://thevaluable.dev/tmux-config-mouseless/
# Change prefix to C-Space
unbind C-b
set -g prefix C-Space
set -g default-shell /bin/zsh
if-shell '[[ $(uname) = "Darwin" ]]' "set -g default-command 'reattach-to-user-namespace -l zsh'"
# Enable mouse
set -g mouse on
# Quick pane navigation
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R
set-window-option -g mode-keys vi
# Set to xterm-256color to ensure it worsk in iterm2
set -g default-terminal "xterm-256color"
# Fast reload tmux configuration
unbind r
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"
# Configure copy-mode to use v for selection and y for yank
unbind -T copy-mode-vi Space; #Default for begin-selection
unbind -T copy-mode-vi Enter; #Default for copy-selection
bind -T copy-mode-vi v send-keys -X begin-selection
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @yank_selection_mouse 'clipboard'
set -g @yank_selection 'clipboard'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'dracula/tmux'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @continuum-restore 'on'
set -g @plugin 'tmux-plugins/tmux-continuum'
# Configure Dracula
set -g @dracula-day-month true
set -g @dracula-show-fahrenheit false
set -g @dracula-border-contrast true
set -g @dracula-show-powerline true
set -g @dracula-show-flags true
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'github_username/plugin_name#branch'
# set -g @plugin '[email protected]:user/plugin'
# set -g @plugin '[email protected]:user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'