Should report out TOTP, though I don't know a way to get remaining time

master
Steven Saus 3 years ago
parent acc7d3709b
commit 3cf7b60371
  1. 3
      kpf.sh

@ -34,5 +34,6 @@ else
KPVALUE=$(echo "${KPPW}" | keepassxc-cli ls --recursive --flatten "${KPDB}" | fzf --no-hscroll -m --ansi --no-bold --preview="$SCRIPTNAME {}" )
echo "${KPPW}" | keepassxc-cli show -s "${KPDB}" "${KPVALUE}" -a password 2> /dev/null | xsel -p ; xsel -o | xsel -b
printf "\nThe password is copied to the clipboard.\n"
printf "Username is %s" "$(echo "${KPPW}" | keepassxc-cli show -s "${KPDB}" "${KPVALUE}" -a username 2> /dev/null)"
printf "Username is %s\n" "$(echo "${KPPW}" | keepassxc-cli show -s "${KPDB}" "${KPVALUE}" -a username 2> /dev/null)"
printf "TOTP (if existing) is %s" "$(echo "${KPPW}" | keepassxc-cli show -s "${KPDB}" "${KPVALUE}" --totp 2> /dev/null)"
fi

Loading…
Cancel
Save