dotfiles/.bin/pass-add
2023-05-02 20:23:43 +02:00

21 lines
283 B
Plaintext
Executable File

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