The Bitwarden CLI bw
provides JSON Output.
Because I don't like to select Strings from the stdout JSON output:
jq
redirects the output into selectable snippetsfzf
selects the entry I needxclip
copies the selected entry into your clipboard (e.g. password)
I adjusted the Bash script by Christian Drumm:
pbcopy
->xclip
, becausexclip
is more common