configs  pw.fish at [1462a28b63]

File fish/functions/pw.fish artifact 3f9323f5b9 part of check-in 1462a28b63


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