From 3cf7b60371ae4525047111f5c52bf16f41c0586c Mon Sep 17 00:00:00 2001 From: Steven Saus Date: Mon, 31 May 2021 20:10:56 -0400 Subject: [PATCH] Should report out TOTP, though I don't know a way to get remaining time --- kpf.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kpf.sh b/kpf.sh index ca91268..24b15c4 100755 --- a/kpf.sh +++ b/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