1
0
Fork 0

bin: Use fzf in passget

This commit is contained in:
Jeremy Kaplan 2020-03-17 18:57:13 -07:00
commit bf41c2e9f0

View file

@ -25,14 +25,9 @@ elif [ "${#matches[@]}" -eq 1 ]; then
uuid="$(echo "${item}" | jq -r '.uuid')"
else
uuid="$(echo "${matches[@]}" \
| jq -r '"\n\(.uuid)\n\(.url)"' \
| zenity \
--list --radiolist \
--title 'passget' \
--text 'Choose a match' \
--column ' ' \
--column 'UUID' \
--column 'URL')"
| jq -r '"\(.uuid) \(.url)"' \
| fzf \
| cut -d ' ' -f 1)"
fi
query_username='.details.fields[] | select(.name == "username") | .value'