summaryrefslogtreecommitdiff
path: root/fish/functions/ccp.fish
blob: c2cba62fe6ee8570e5dc55c45f4dce3c32658629 (plain)
1
2
3
4
5
6
7
8
function ccp
    begin
        if not isatty stdin
            read
        end
        cat $argv
    end | fish_clipboard_copy
end