Skip to content

Instantly share code, notes, and snippets.

@phanletrunghieu
Created December 4, 2019 10:22
Show Gist options
  • Save phanletrunghieu/2f7fe544e44bb4d8138eed55cc925680 to your computer and use it in GitHub Desktop.
Save phanletrunghieu/2f7fe544e44bb4d8138eed55cc925680 to your computer and use it in GitHub Desktop.
tmux
set-option -ga terminal-override ',rxvt-uni*:XT:Ms=\E]52;%p1%s;%p2%s\007'
set -g mouse on
setw -g mode-keys vi
source-file "${HOME}/.tmux-themepack/powerline/block/cyan.tmuxtheme"
# For binding 'y' to copy and exiting selection mode
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -sel clip -i'
# For binding 'Enter' to copy and not leave selection mode
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe 'xclip -sel clip -i' '\;' send -X clear-selection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment