-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
97 lines (79 loc) · 2.97 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
# Rebind Prefix
unbind C-b
set -g prefix C-a
set -g mouse on
set -g mouse-select-pane on
bind-key -r C-a send-prefix
# LazyVim recommends
set -g xterm-keys on
set-option -sg escape-time 10
set-option -g focus-events on
# Reload config
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
#Terminal Colors and Bar
set-option -g default-terminal "screen-256color"
set-option -g status-position top
# Tmux count starting at 1 > 0 for easier key/mind map
set-option -g base-index 1
set-option -g renumber-windows on
# History Limit Increase
set -g history-limit 10000
# Rebind Zoom
bind-key C-z resize-pane -Z
# Terminator like Pane split
bind-key -n C-o split-window -v -c "#{pane_current_path}"
bind-key -n C-e split-window -h -c "#{pane_current_path}"
# Vim Like Pane Navigation
bind-key C-h select-pane -L
bind-key C-j select-pane -D
bind-key C-k select-pane -U
bind-key C-l select-pane -R
# Resize Panes
bind-key -n C-S-Left resize-pane -L 10
bind-key -n C-S-Right resize-pane -R 10
bind-key -n C-S-Down resize-pane -D 5
bind-key -n C-S-Up resize-pane -U 5
# Window Settings
# bind c new-window -c "#{pane_current_path}"
# breaks pane to new-window
# bind-key b break-pane -d
# Session Settings
bind-key -n C-p choose-tree
# Themes and Packages
# prefix + I (install) U for update
set -g @plugin 'tmux-plugins/tpm'
# set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'catppuccin/tmux'
set -g @plugin 'tmux-plugins/tmux-cpu'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @continuum-boot 'on'
set -g @continuum-boot-options 'iterm' #fullscreen
# Theme Settings
set -g @catppuccin_flavour 'mocha' # latte frappe, macchiato, mocha
set -g @catppuccin_window_left_separator ""
set -g @catppuccin_window_right_separator " "
set -g @catppuccin_window_middle_separator " █"
set -g @catppuccin_window_number_position "right"
set -g @catppuccin_window_default_fill "number"
set -g @catppuccin_window_default_text "#W"
set -g @catppuccin_window_current_fill "number"
set -g @catppuccin_window_current_text "#W"
# TODO: Custom Module that uses tmux-cpu to show both cpu, mem, gpu
set -g @catppuccin_status_modules_left "session"
set -g @catppuccin_status_modules_right "directory cpu date_time" # user host
set -g @catppuccin_status_left_separator " "
set -g @catppuccin_status_right_separator ""
set -g @catppuccin_status_right_separator_inverse "no"
set -g @catppuccin_status_fill "icon"
set -g @catppuccin_status_connect_separator "no"
set -g @catppuccin_date_time_text "%a %b %d, %I:%M:%S %p"
set -g @catppuccin_directory_text "#{pane_current_path}"
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'github_username/plugin_name#branch'
# 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'