From 888ab9091c4fb5bbadd1329524abfe9aa7a84451 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Fri, 28 Feb 2020 19:07:05 +0100 Subject: [PATCH] lib: add support for clippaste in WSL using powershell Source: https://github.com/microsoft/WSL/issues/4852#issuecomment-579616808 --- lib/clipboard.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/clipboard.zsh b/lib/clipboard.zsh index 808f2ea2d..122145f15 100644 --- a/lib/clipboard.zsh +++ b/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