1
1
Fork 0

Bring zsh and fish back in sync

This commit is contained in:
Jonathan Schleifer 2022-11-25 22:16:50 +00:00
parent 84a7f938fb
commit fe8461f4b8
9 changed files with 81 additions and 46 deletions

View file

@ -1,14 +1,3 @@
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 ~/.cryptopassphrase-server.key $argv \
| tr -d '\n' | $clipboard
function pw --wraps pwnk
pwnk -k ~/.cryptopassphrase-server.key $argv
end