kutsan / zsh-system-clipboard

System clipboard key bindings for Zsh Line Editor with vi mode. It is similar to what `set clipboard=unnamed` does for vim.
GNU General Public License v3.0
149 stars 16 forks source link

Rewrite: Use simpler logic for all config options #43

Closed doronbehar closed 2 years ago

doronbehar commented 2 years ago

Use a simple ZSH_SYSTEM_CLIPBOARD_METHOD env var to control whether tmux or any other clipboard method is used.

cc @davidsierradz for testing.

davidsierradz commented 2 years ago

With ZSH_SYSTEM_CLIPBOARD_METHOD=tmux and TMUX option set-option -g set-clipboard on I can sync my TMUX and X clipboards at the same time, without errors. Thanks!