configs  Artifact [8140148617]

Artifact 8140148617367fdcb8db2020ad94f6a9816b0a141ca5979036275500e317d93c:

  • File config/fish/functions/pw.fish — part of check-in [c4bb3283fb] at 2020-02-15 22:44:12 on branch trunk — Update fish config for 3.1.0 (user: js size: 254)

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