mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-03-02 10:41:04 +01:00
scripts
This commit is contained in:
parent
d61ade383f
commit
fe2b47450d
2 changed files with 24 additions and 4 deletions
14
scripts/hbw
Executable file
14
scripts/hbw
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue