configs  pw.fish at [24d2eb82f0]

File fish/functions/pw.fish artifact d82ba2ca27 part of check-in 24d2eb82f0


function pw
    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.key $argv | tr -d '\n' | $clipboard
end