dotfiles/.bin/pass-add

21 lines
283 B
Plaintext
Raw Normal View History

2023-02-22 08:31:38 +01:00
#/bin/sh
echo -n "Internet/...: "
read
_file="Internet/$REPLY"
echo -n "Username: "
read
_login="$REPLY"
2023-02-22 08:31:38 +01:00
_password="$(pwgen -syn -r "{}'\\§()°\`|[]\";" 16 1)"
{
echo "$_password";
echo "Username: $_login";
2023-02-22 08:31:38 +01:00
} | pass insert -m "${_file}"
echo "======="
pass "${_file}"