Created
August 2, 2023 15:37
-
-
Save RyanBreaker/0984ab79388e14f49b59e5e4aba6c16d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For color | |
set-option -sa terminal-overrides ",xterm*:Tc" | |
# Enable mouse | |
set -g mouse 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 | |
# Start windows 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 | |
# 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 'dreamsofcode-io/catppuccin-tmux' | |
set -g @plugin 'tmux-plugins/tmux-yank' | |
# Set vi window mode | |
set-window-option -g mode-keys vi | |
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 | |
# Open panes in CWD | |
bind '"' split-window -v -c "#{pane_current_path}" | |
bind % split-window -h -c "#{pane_current_path}" | |
# 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' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment