configs  pws.fish at [bed5a23ae3]

File config/fish/functions/pws.fish artifact 0888de4a7d part of check-in bed5a23ae3


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 ~/.scrypt-pwgen-server.key $argv \
        | tr -d '\n' | $clipboard
end