mirror of
https://github.com/tmux-plugins/tmux-yank.git
synced 2026-09-10 07:36:17 -04:00
Use clip.exe if exists for copying to Windows clipboard in WSL.
This commit is contained in:
parent
e306c645b0
commit
fe10415ba0
|
|
@ -110,6 +110,8 @@
|
|||
else
|
||||
echo "pbcopy"
|
||||
fi
|
||||
elif command_exists "clip.exe"; then # WSL clipboard command
|
||||
echo "clip.exe"
|
||||
elif command_exists "xclip"; then
|
||||
local xclip_selection="$(yank_selection)"
|
||||
echo "xclip -selection $xclip_selection"
|
||||
|
|
|
|||
Loading…
Reference in a new issue