lib: add support for clippaste in WSL using powershell

Source: https://github.com/microsoft/WSL/issues/4852#issuecomment-579616808
master
Marc Cornellà 6 years ago
parent 3e16d64347
commit 888ab9091c
  1. 2
      lib/clipboard.zsh

@ -83,7 +83,7 @@ function detect-clipboard() {
function clippaste() { tmux save-buffer -; }
elif [[ $(uname -r) = *icrosoft* ]]; then
function clipcopy() { clip.exe < "${1:-/dev/stdin}"; }
function clippaste() { _retry_clipboard_detection_or_fail clippaste "$@"; }
function clippaste() { powershell.exe -noprofile -command Get-Clipboard; }
else
function _retry_clipboard_detection_or_fail() {
local clipcmd="${1}"; shift

Loading…
Cancel
Save