Skip to content

Instantly share code, notes, and snippets.

@NateLehman
Last active November 28, 2018 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NateLehman/812160ae0e82fa06ead18265bf005c19 to your computer and use it in GitHub Desktop.
Save NateLehman/812160ae0e82fa06ead18265bf005c19 to your computer and use it in GitHub Desktop.
fish alias commands for copy and paste to system clipboard on WSL (flavored like osx)
function pbcopy --description 'alias pbcopy /mnt/c/windows/system32/clip.exe'
/mnt/c/windows/system32/clip.exe $argv;
end
function pbpaste --description 'alias pbpaste powershell.exe -Command Get-Clipboard'
powershell.exe -Command Get-Clipboard $argv | dos2unix;
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment