1 2 3 4 5 6 7
function fish_clipboard_paste if type -q pbpaste commandline -i (pbpaste) else if type -q xsel commandline -i (xsel --clipboard) end end