summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/secretmenu4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/secretmenu b/bin/secretmenu
index 42399cc..1cbc1fc 100755
--- a/bin/secretmenu
+++ b/bin/secretmenu
@@ -6,13 +6,13 @@ set -eo pipefail
 ico=$(iconez -fs -n dialog-password-symbolic)
 trap '{ notify-send -a secretmenu -i "${ico}" -c error "secretmenu: failed :(" "<i>pipefail</i>"; exit 1; }' ERR
 
-if [ "$1" = "-b" ]; then
+if [ "$1" = "-b" ] || command -v rbw >/dev/null 2>&1; then
 	secretmgr=rbw
 	__list_secrets() {
 		rbw list
 	}
 	__query_secret() {
-		rbw get "$1" 2>&1
+		rbw get --full "$1" 2>&1
 	}
 else
 	secretmgr=pass