Skip to content

Instantly share code, notes, and snippets.

@mike-day
Last active September 29, 2023 21:15
Show Gist options
  • Save mike-day/9dbd72954e9f4ac5f699352b77967d59 to your computer and use it in GitHub Desktop.
Save mike-day/9dbd72954e9f4ac5f699352b77967d59 to your computer and use it in GitHub Desktop.
Basic tmux config
# Set the control character to Ctrl+Spacebar (instead of Ctrl+B)
set -g prefix C-space
unbind-key C-b
bind-key C-space send-prefix
# Set new panes to open in current directory
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
# Enable the mouse cursor for pane resizing, clicking to select pane
set -g mouse on
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# Initialize TMUX plugin manager (keep this line at bottom of file!)
run '~/.tmux/plugins/tpm/tpm'
@mike-day
Copy link
Author

Global! I have it at my root user folder with other global configs (git, zsh, etc)

@johnstonphilip
Copy link

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment