Skip to content

Instantly share code, notes, and snippets.

@pmargreff
Last active September 24, 2021 11:47
Show Gist options
  • Save pmargreff/79f51b211a88185a7c9af006b1019bd5 to your computer and use it in GitHub Desktop.
Save pmargreff/79f51b211a88185a7c9af006b1019bd5 to your computer and use it in GitHub Desktop.
unbind C-b
set -g prefix C-t
unbind '"'
bind-key h split-window -h -c '#{pane_current_path}'
unbind %
bind-key v split-window -v -c '#{pane_current_path}'
unbind [
unbind n
bind-key n copy-mode
set-option -g default-terminal "screen-256color"
setw -g mode-keys vi
# Use v to trigger selection
bind-key -T copy-mode-vi v send-keys -X begin-selection
# Use y to send current selection to clipboard
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
set-option -g default-shell /bin/zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment