Format interactive prompts with brackets

This commit is contained in:
He4eT 2026-03-29 20:59:11 +02:00
commit 603110e816
2 changed files with 4 additions and 4 deletions

View file

@ -26,8 +26,8 @@ Searching for 'github'...
abcdefgh-ijkl-mnop-qrst-uvwxyz123456 abcdefgh-ijkl-mnop-qrst-uvwxyz123456
github.com github.com
Username 'Username' copied to clipboard. Username 'username' copied to clipboard.
Press any key to copy the password... [Press any key to copy the password]
Password copied to clipboard. Password copied to clipboard.
``` ```

4
bwc
View file

@ -30,13 +30,13 @@ process_item () {
echo $username | xclip -sel clip echo $username | xclip -sel clip
echo "Username '$username' copied to clipboard." echo "Username '$username' copied to clipboard."
read -s -k $'?Press any key to copy the password...\n' read -s -k $'?[Press any key to copy the password]\n'
jq -r ".login.password" <<< $login | xclip -sel clip jq -r ".login.password" <<< $login | xclip -sel clip
echo "Password copied to clipboard." echo "Password copied to clipboard."
local totp=$(jq -r ".login.totp" <<< $login) local totp=$(jq -r ".login.totp" <<< $login)
if [[ $totp != "" && $totp != "null" ]]; then if [[ $totp != "" && $totp != "null" ]]; then
read -s -k $'?Press any key to copy the TOTP Token...\n' read -s -k $'[Press any key to copy the TOTP Token]\n'
bw get totp $id --session $sessionkey | xclip -sel clip bw get totp $id --session $sessionkey | xclip -sel clip
echo "Token copied to clipboard." echo "Token copied to clipboard."
fi fi