configs  Diff

Differences From Artifact [c19223205d]:

To Artifact [86acf42758]:


1
2
3
4
5
6
7
8
9
10
11
12
13
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


|

|








1
2
3
4
5
6
7
8
9
10
11
12
13
function pw
	set -l clipboard
	if which pbcopy >/dev/null ^&1
		set clipboard pbcopy
	else if which xclip >/dev/null ^&1
		set clipboard xclip
	else
		echo "No clipboard handler found!"
		return 1
	end

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