AutoYADM commit: 2025-05-04 18:15:08
This commit is contained in:
parent
4d114c959a
commit
a94d5ddb62
2 changed files with 16 additions and 2 deletions
|
@ -1,3 +1,17 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
echo rbw-fish
|
||||
set -l query (echo username\npassword\ncode | fuzzel --prompt="> " --dmenu)
|
||||
|
||||
set -l selected (rbw list | fuzzel --prompt="$query: " --dmenu)
|
||||
if test -z "$selected"
|
||||
return 1
|
||||
end
|
||||
|
||||
set -l output
|
||||
if test "$query" = code
|
||||
set output (rbw code "$selected")
|
||||
else
|
||||
set output (rbw get "$selected" --raw | jq --join-output ".data.$query")
|
||||
end
|
||||
|
||||
wl-copy $output
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue