Skip to content

Instantly share code, notes, and snippets.

@LiamKarlMitchell
Created April 2, 2026 22:59
Show Gist options
  • Select an option

  • Save LiamKarlMitchell/3fd70dfda7a6ded82062ba8f18d2efec to your computer and use it in GitHub Desktop.

Select an option

Save LiamKarlMitchell/3fd70dfda7a6ded82062ba8f18d2efec to your computer and use it in GitHub Desktop.
A custom configuration for tmux
# psmux - Bring the power of tmux to windows https://github.com/psmux/psmux
# Mouse support
set -g mouse on
# Passthrough (for image rendering, OSC sequences, etc.)
set -g allow-passthrough on
# Better colors
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
# No delay on escape (important for vim/neovim)
set -sg escape-time 0
# Longer scrollback
set -g history-limit 50000
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
set -g renumber-windows on
# ── Prefix ────────────────────────────────────────────────────────
# Change prefix from C-b to C-a (easier to reach)
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# ── Splits ────────────────────────────────────────────────────────
# Intuitive split bindings, open in current path
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# ── Resize panes with arrow keys ──────────────────────────────────
bind -r Up resize-pane -U 5
bind -r Down resize-pane -D 5
bind -r Left resize-pane -L 5
bind -r Right resize-pane -R 5
# ── Status bar ────────────────────────────────────────────────────
set -g status-interval 5
set -g status-left-length 40
set -g status-right-length 60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment