-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
66 lines (47 loc) · 1.75 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
# use zsh
set-option -g default-shell /bin/zsh
# fix colors
set -g default-terminal "screen-256color"
# set prefix (ctrl + space)
unbind C-b
set -g prefix C-space
bind C-space send-prefix
# start window indexing at 1 instead of 0
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
# split new pane into cwd
bind '"' split-window -v -c "#{pane_current_path}"
bind '%' split-window -h -c "${pane_current_path}"
# Fix colors inside alacritty
set -ag terminal-overrides ",xterm-256color:RGB"
# set-option -ga terminal-overrides ",tmux-256color:Tc"
setw -g xterm-keys on
set -s focus-events on
# Enable mouse mode (tmux 2.1 and above)
set -g mouse on
# don't rename windows automatically
set-option -g allow-rename off
# allow entry into vi mode for copy and pasting
setw -g mode-keys vi
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
# cycle windows left and right with ctrl H (left) and ctrl L (right)
# bind -n M-H previous-window
# bind -n M-L next-window
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
# navigation for split panes
set -g @plugin 'christoomey/vim-tmux-navigator'
# theme
# set -g @plugin "arcticicestudio/nord-tmux"
set -g @plugin 'catppuccin/tmux'
set -g @catppuccin_flavour 'macchiato' # or latte frappe, macchiato, mocha
# yank
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# Clears the current pane's buffer so that there is no scroll back. See link for more information
# https://stackoverflow.com/questions/10543684/how-do-i-clear-the-scrollback-buffer-in-tmux
bind -n C-k clear-history