From 17f49a2e1c15c6b419a88ad3e467336ffc7debc6 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Wed, 14 Aug 2024 22:51:52 -0700 Subject: pme username auto enter tab to switch to password field --- sh/pme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sh/pme') diff --git a/sh/pme b/sh/pme index 16d1c09..a527953 100755 --- a/sh/pme +++ b/sh/pme @@ -21,7 +21,7 @@ find "$HOME/.password-store/" \( -type f -o -type l \) -name '*.gpg' \ xargs pass | { if [ "$user" ]; then # https://www.gnu.org/software/gawk/manual/html_node/Case_002dsensitivity.html - awk 'tolower($1) ~ /^(user|username):$/ {printf $2}' + awk 'tolower($1) ~ /^(user|username):$/ {printf("%s\t",$2)}' else # modified from https://git.zx2c4.com/password-store/tree/contrib/dmenu/passmenu#n34 GPL-2.0-or-later code IFS= read -r p; printf '%s\r' "$p" -- cgit v1.2.3-70-g09d2