configs  Artifact [c19223205d]

Artifact c19223205d6c00e22abc44036e18b42f37eac74f4a83ffaaa998cc7cc3896e58:

  • File config/fish/functions/pw.fish — part of check-in [09fe98aab3] at 2020-01-21 00:11:28 on branch trunk — Add fish config (user: js size: 272)

function pw
	set -l clipboard
	if which pbcopy >/dev/null
		set clipboard pbcopy
	else if which xclip >/dev/null
		set clipboard xclip
	else
		echo "No clipboard handler found!"
		return 1
	end

	cryptopassphrase -k ~/.scrypt-pwgen.key $argv | tr -d '\n' | $clipboard
end