Skip to content

Instantly share code, notes, and snippets.

@JustinJohnWilliams
Last active May 7, 2021 16:35
Show Gist options
  • Save JustinJohnWilliams/7795f21dec8293e79d69ccd1d5b59ab4 to your computer and use it in GitHub Desktop.
Save JustinJohnWilliams/7795f21dec8293e79d69ccd1d5b59ab4 to your computer and use it in GitHub Desktop.
# Add more scroll history in the buffer
set -g history-limit 50000
# Enable color support inside of tmux.
set -g default-terminal "screen-256color"
# Start windows and panes index at 1, not 0.
set -g base-index 1
setw -g pane-base-index 1
# Set repeat time to 1 second. default is 500ms
set -g repeat-time 1000
# Faster command sequence, no delay in sending command
set -sg escape-time 0
#--------------------------------
# Key bindings
#--------------------------------
# unbind window/tabs
unbind '"'
unbind %
# Bind 4 to reload config
bind-key r source-file ~/.tmux.conf \; display "Reloading config..."
# Split panes
bind-key | split-window -h
bind-key _ split-window -v
# Nav panes with hjkl
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# Resize nav panes
bind-key -r H resize-pane -L
bind-key -r J resize-pane -D
bind-key -r K resize-pane -U
bind-key -r L resize-pane -R
set -g @plugin 'tmux-plugins/tmux-yank'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment