configs  Artifact [3f9323f5b9]

Artifact 3f9323f5b9e7ff693abf27d0de3eb8404b9371f72bfddcafc8dbc2a7bd71683c:

  • File fish/functions/pw.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: 300)

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