Skip to content

Instantly share code, notes, and snippets.

@jkao
Last active June 21, 2021 20:46
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 jkao/1e9d0244c773188c3e5a9d629c7671ad to your computer and use it in GitHub Desktop.
Save jkao/1e9d0244c773188c3e5a9d629c7671ad to your computer and use it in GitHub Desktop.
.tmux.conf
# colors
set -g default-terminal 'screen-256color'
# rebind
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
bind-key ` copy-mode
bind-key p paste-buffer
# admin debris
set -g status-left ''
set -g status-right ''
# set -g prefix C-b
bind-key C-b send-prefix
# vim
setw -g mode-keys vi
# set up 'v' selection
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
# unbind previous and switch to paste
unbind p
bind p paste-buffer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment