Skip to content

Instantly share code, notes, and snippets.

@timshen91
Created June 13, 2020 00:01
Show Gist options
  • Save timshen91/670c87271a62d5b9d4b8a5d187b1c59d to your computer and use it in GitHub Desktop.
Save timshen91/670c87271a62d5b9d4b8a5d187b1c59d to your computer and use it in GitHub Desktop.
tmux config
set -g prefix C-h
set -g escape-time 0
set -g default-terminal "screen-256color"
bind-key -n M-t new-window -c '#{pane_current_path}' -a -t '{end}'
bind-key -n M-w kill-window
bind-key -n M-j next-window
bind-key -n M-k previous-window
bind-key -n M-J swap-window -d -t +1
bind-key -n M-K swap-window -d -t -1
bind-key -n M-f copy-mode
bind-key -n M-v paste-buffer
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection \; send-keys -X cancel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment