[Update] bulk update
This commit is contained in:
@@ -7,8 +7,10 @@ function kp
|
||||
read -s -P "Enter db password: " pass
|
||||
echo ""
|
||||
|
||||
set -l entry (echo $pass | keepassxc-cli ls -q -R $KP_DB | fzf)
|
||||
# -f flattens to full paths; without it nested entries are printed indented and
|
||||
# without their group prefix, so `clip` can't find them. Group lines end in "/".
|
||||
set -l entry (printf '%s\n' $pass | keepassxc-cli ls -q -R -f $KP_DB | string match -v '*/' | fzf | string trim)
|
||||
if test -n "$entry"
|
||||
echo $pass | keepassxc-cli clip -q $KP_DB $entry 0
|
||||
printf '%s\n' $pass | keepassxc-cli clip -q $KP_DB $entry 0
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user