Skip to content

Instantly share code, notes, and snippets.

@mingyuchoo
Last active October 4, 2021 10:44
Show Gist options
  • Save mingyuchoo/a17b5c8f9bb4ce3663506dc350776508 to your computer and use it in GitHub Desktop.
Save mingyuchoo/a17b5c8f9bb4ce3663506dc350776508 to your computer and use it in GitHub Desktop.
Tmux config file
# scrollback size
set -g history-limit 10000
# change Ctrl+b to Ctrl+x
#unbind C-b
set -g prefix C-s
# set first window to index 1 (not 0)
set -g base-index 1
set -g pane-base-index 1
# re-draw the client
bind R refresh-client
# Using the mouse to switch panes
set -g mouse on
set -g mode-keys emacs
set -g monitor-activity on
# Change keys for splitting window
bind-key _ split-window -v
bind-key | split-window -h
# Pane resize
bind-key H resize-pane -L 10
bind-key J resize-pane -D 10
bind-key K resize-pane -U 10
bind-key L resize-pane -R 10
# Vim style pane selection
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment