configs  Artifact [0888de4a7d]

Artifact 0888de4a7dffe81279caca601faff770e3fbfba50fa176cc160c9616b5b8070b:

  • File config/fish/functions/pws.fish — part of check-in [bed5a23ae3] at 2020-02-19 21:46:19 on branch trunk — Consistent indenting for .fish files (user: js size: 314)
  • File fish/functions/pws.fish — part of check-in [24d2eb82f0] at 2020-02-20 22:07:34 on branch trunk — Remove useless config subdirectory (user: js size: 314)

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