Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@WilliamDenniss
Created November 14, 2020 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WilliamDenniss/88c0b335a6865fe69b28981866c5cf45 to your computer and use it in GitHub Desktop.
Save WilliamDenniss/88c0b335a6865fe69b28981866c5cf45 to your computer and use it in GitHub Desktop.
William's tmux Config
#ref: https://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
# switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# Enable mouse mode (tmux 2.1 and above)
set -g mouse on
# Notes: SHIFT will temporarily disable the mouse mode
bind -n MouseDown3Pane paste-buffer
bind v paste-buffer
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind \ split-window -h
bind - split-window -v
unbind '"'
unbind %
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
# ref: https://stackoverflow.com/a/36990353/72176
bind-key -T copy-mode MouseDragEnd1Pane send -X copy-pipe-and-cancel "clip.exe"
# home/end keys
bind -n End send-key C-e
bind -n Home send-key C-a
bind -n M-c send-keys -R\; clear-history
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment