2023-02-22 08:31:38 +01:00
|
|
|
#/bin/sh
|
|
|
|
|
2023-05-02 20:23:25 +02:00
|
|
|
echo -n "Internet/...: "
|
|
|
|
read
|
|
|
|
_file="Internet/$REPLY"
|
|
|
|
|
|
|
|
echo -n "Username: "
|
|
|
|
read
|
|
|
|
_login="$REPLY"
|
2023-02-22 08:31:38 +01:00
|
|
|
|
2023-09-18 12:24:42 +02: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";
|
2023-05-02 20:23:25 +02:00
|
|
|
echo "Username: $_login";
|
2023-02-22 08:31:38 +01:00
|
|
|
} | pass insert -m "${_file}"
|
|
|
|
|
|
|
|
echo "======="
|
|
|
|
|
|
|
|
pass "${_file}"
|