63 lines
1.5 KiB
Bash
63 lines
1.5 KiB
Bash
# Set true color
|
|
set-option -sa terminal-overrides ",xterm*:Tc"
|
|
|
|
# Enable mouse
|
|
set -g mouse on
|
|
|
|
# Restore tmux session on start
|
|
set -g @continuum-restore 'on'
|
|
|
|
# Set start-index to 1
|
|
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
|
|
|
|
# Set prefix
|
|
unbind C-b
|
|
set -g prefix C-space
|
|
bind C-space send-prefix
|
|
|
|
# Shift Alt vim keys to switch windows
|
|
bind -n M-H previous-window
|
|
bind -n M-L next-window
|
|
|
|
# Open panes in current directory
|
|
bind v split-window -v -c "#{pane_current_path}"
|
|
bind h split-window -h -c "#{pane_current_path}"
|
|
unbind '"'
|
|
unbind %
|
|
|
|
# Reload config
|
|
bind r source-file ~/.config/tmux/tmux.conf
|
|
|
|
# Set vi-mode
|
|
set-window-option -g mode-keys vi
|
|
# keybindings
|
|
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
|
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
|
|
bind-key -T copy-mode-vi y send-key -X copy-selection-and-cancel
|
|
|
|
# Stop auto-rename
|
|
# set-option -g allow-rename off
|
|
|
|
# set -g @catppuccin_flavour 'frappe'
|
|
|
|
# List of plugins
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
|
set -g @plugin 'christoomey/vim-tmux-navigator'
|
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
|
set -g @plugin 'tmux-plugins/tmux-continuum'
|
|
|
|
#set -g @plugin "catppuccin/tmux"
|
|
set -g @plugin "dreamsofcode-io/catppuccin-tmux"
|
|
|
|
set -g default-command /usr/bin/fish
|
|
set -g default-shell /usr/bin/fish
|
|
|
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
|
run '~/.tmux/plugins/tpm/tpm'
|