configs  pws.fish at [00abb3e9d6]

File fish/functions/pws.fish artifact 8c5fe78007 part of check-in 00abb3e9d6


function pws
    set -l clipboard
    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 -k ~/.cryptopassphrase-server.key $argv \
        | tr -d '\n' | $clipboard
end