mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-02-14 19:30:19 +01:00
14 lines
258 B
Bash
Executable file
14 lines
258 B
Bash
Executable file
#!/bin/sh
|
|
|
|
NAME=$1
|
|
if [ -z $1 ]; then
|
|
exit 0
|
|
fi
|
|
|
|
bw list items --search $NAME |\
|
|
jq 'reduce .[] as $item (
|
|
"";
|
|
. + "=====" + $item.name + "====\n "
|
|
+ $item.login.username + "\n "
|
|
+ $item.login.password + "\n\n")' -r |\
|
|
head -n -2
|