Skip to content

Instantly share code, notes, and snippets.

@thass0
Created April 2, 2026 08:13
Show Gist options
  • Select an option

  • Save thass0/68a24fcfbbe4cfcc99fe4a0ae0a20813 to your computer and use it in GitHub Desktop.

Select an option

Save thass0/68a24fcfbbe4cfcc99fe4a0ae0a20813 to your computer and use it in GitHub Desktop.
# Ctrl-b is the default prefix for Tmux, but it conflicts with Emacs/Shell-style
# bindings and Vim. Ctrl-Space on the other hand is easy to press and doesn't
# lead to conflicts.
set -g prefix C-Space
unbind C-b
bind C-Space send-prefix
# Ensure tmux passes the current working directory to new panes
bind-key c new-window -c "#{pane_current_path}"
bind-key % split-window -h -c "#{pane_current_path}"
bind-key '"' split-window -v -c "#{pane_current_path}"
bind-key k select-pane -U
bind-key j select-pane -D
bind-key l select-pane -R
bind-key h select-pane -L
set -g mouse on
set -g history-limit 10000
set -g default-terminal "screen-256color"
set -s set-clipboard off
set -s copy-command 'wl-copy'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment