configs  Artifact [8c5fe78007]

Artifact 8c5fe780070f2ae220b9dabc94ee3172f1565f390edc6ce5366ca95ad4f73034:

  • File fish/functions/pws.fish — part of check-in [ab536054ec] at 2020-02-28 01:05:50 on branch trunk — pw(s).fish: Fix key path (user: js size: 318)

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