mirror of
https://github.com/He4eT/fuzzy-bitwarden-clipboard.git
synced 2026-05-04 14:57:22 +00:00
Format interactive prompts with brackets
This commit is contained in:
parent
656699f9e6
commit
603110e816
2 changed files with 4 additions and 4 deletions
|
|
@ -26,8 +26,8 @@ Searching for 'github'...
|
|||
abcdefgh-ijkl-mnop-qrst-uvwxyz123456
|
||||
github.com
|
||||
|
||||
Username 'Username' copied to clipboard.
|
||||
Press any key to copy the password...
|
||||
Username 'username' copied to clipboard.
|
||||
[Press any key to copy the password]
|
||||
Password copied to clipboard.
|
||||
```
|
||||
|
||||
|
|
|
|||
4
bwc
4
bwc
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue