Skip to content

Instantly share code, notes, and snippets.

@RyanBreaker
Created August 2, 2023 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RyanBreaker/0984ab79388e14f49b59e5e4aba6c16d to your computer and use it in GitHub Desktop.
Save RyanBreaker/0984ab79388e14f49b59e5e4aba6c16d to your computer and use it in GitHub Desktop.
# 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 '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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment