Use clip.exe if exists for copying to Windows clipboard in WSL.

This commit is contained in:
Luke Wang 2017-03-28 19:52:51 +08:00
parent e306c645b0
commit fe10415ba0

View file

@ -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"