mirror of
https://github.com/He4eT/fuzzy-bitwarden-clipboard.git
synced 2026-05-04 14:57:22 +00:00
Make it a bit more readable
This commit is contained in:
parent
233ccfc424
commit
55b96654db
1 changed files with 2 additions and 1 deletions
3
bwc
3
bwc
|
|
@ -66,7 +66,8 @@ main() {
|
||||||
|
|
||||||
local logins=$(bw list items --search $searchterm --session $sessionkey)
|
local logins=$(bw list items --search $searchterm --session $sessionkey)
|
||||||
|
|
||||||
local id=$(jq -r '.[] | "\(.name)\t\(.login.username)\t\(.id)"' <<< $logins \
|
local id=$(
|
||||||
|
jq -r '.[] | "\(.name)\t\(.login.username)\t\(.id)"' <<< $logins \
|
||||||
| fzf --reverse --with-nth=1,2 --delimiter="\t" --select-1 --exit-0 \
|
| fzf --reverse --with-nth=1,2 --delimiter="\t" --select-1 --exit-0 \
|
||||||
| awk -F"\t" '{print $3}'
|
| awk -F"\t" '{print $3}'
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue