26 lines
383 B
Plaintext
Executable File
26 lines
383 B
Plaintext
Executable File
#/bin/sh
|
|
|
|
echo -n "Internet/...: "
|
|
read
|
|
_file="Internet/$REPLY"
|
|
|
|
echo -n "Username: "
|
|
read
|
|
_login="$REPLY"
|
|
|
|
echo -n "Password (empty to generate): "
|
|
read
|
|
|
|
[ -z "$REPLY" ] \
|
|
&& _password="$(pwgen -syn -r "{}'\\§()°\`|[]\";" 16 1)" \
|
|
|| _password="$REPLY"
|
|
|
|
{
|
|
echo "$_password";
|
|
echo "Username: $_login";
|
|
} | pass insert -m "${_file}"
|
|
|
|
echo "======="
|
|
|
|
pass "${_file}"
|