diff options
author | Xiao Pan <xyz@flylightning.xyz> | 2024-08-14 22:51:52 -0700 |
---|---|---|
committer | Xiao Pan <xyz@flylightning.xyz> | 2024-08-14 22:51:52 -0700 |
commit | 17f49a2e1c15c6b419a88ad3e467336ffc7debc6 (patch) | |
tree | 2691b45d65298d449e2f62c27fd1c7696a7dc83f /sh/pme | |
parent | 461637a7ad2cba3c316da4fcebd5d6bc447032eb (diff) |
pme username auto enter tab to switch to password field
Diffstat (limited to 'sh/pme')
-rwxr-xr-x | sh/pme | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" |