Skip to content

Commit

Permalink
lib: add support for clippaste in WSL using powershell
Browse files Browse the repository at this point in the history
  • Loading branch information
mcornella authored and spiliopoulos committed May 19, 2020
1 parent 0b88344 commit a27f6b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/clipboard.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,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
Expand Down

0 comments on commit a27f6b0

Please sign in to comment.