Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
fish function for copy to clipboard
function copy -d 'copy to clipboard'
switch (uname)
case Linux
xsel --clipboard --input
case Darwin
pbcopy
case '*'
echo "copy not supported for (uname)"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment