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

4
bwc
View file

@ -30,13 +30,13 @@ process_item () {
echo $username | xclip -sel clip
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
echo "Password copied to clipboard."
local totp=$(jq -r ".login.totp" <<< $login)
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
echo "Token copied to clipboard."
fi