configs  pwnk.fish at [5ce6a066ea]

File fish/functions/pwnk.fish artifact ae819bde46 part of check-in 5ce6a066ea


function pwnk
    set -l clipboard
    if type -q wl-copy
        set clipboard wl-copy
    else if type -q pbcopy
        set clipboard pbcopy
    else if type -q xclip
        set clipboard xclip
    else
        echo "No clipboard handler found!"
        return 1
    end

    cryptopassphrase $argv | tr -d '\n' | $clipboard
end