Skip to content

Instantly share code, notes, and snippets.

@MateusTymoniuk
Last active September 8, 2023 08:32
Show Gist options
  • Save MateusTymoniuk/b427ff07895704d47c670d497079ddae to your computer and use it in GitHub Desktop.
Save MateusTymoniuk/b427ff07895704d47c670d497079ddae to your computer and use it in GitHub Desktop.
Useful configurations for tmux
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
bind r source-file ~/.tmux.conf
set -g base-index 1
# use mouse scrolling
set -g mouse on
# vim-like pane switching
bind -r ^ last-window
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
# Set new panes to open in current directory
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment