1 2 3 4 5 6 7
function fish_clipboard_copy if type -q pbcopy commandline | pbcopy else if type -q xsel commandline | xsel --clipboard end end