dotfiles/.bin/OLD/pass-change

26 lines
383 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
echo -n "Password (empty to generate): "
read
[ -z "$REPLY" ] \
&& _password="$(pwgen -syn -r "{}'\\§()°\`|[]\";" 16 1)" \
|| _password="$REPLY"
2023-02-22 08:31:38 +01:00
{
echo "$_password";
echo "Username: $_login";
2023-02-22 08:31:38 +01:00
} | pass insert -m "${_file}"
echo "======="
pass "${_file}"