configs  Artifact [ae819bde46]

Artifact ae819bde4674cb6c81138dc18b932694652ef7310597d74f53fdb5f2f5304e41:

  • File fish/functions/pwnk.fish — part of check-in [6be55bde09] at 2022-11-25 22:16:50 on branch trunk — Bring zsh and fish back in sync (user: js size: 333)

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