Compare commits
2 commits
6f074851e5
...
53996693ad
Author | SHA1 | Date | |
---|---|---|---|
53996693ad | |||
1eca28f39c |
1 changed files with 6 additions and 4 deletions
|
@ -29,8 +29,8 @@ main() {
|
|||
|
||||
test -n "$entry" || exit 0
|
||||
|
||||
username=`pass show "$entry" 2>/dev/null | rg -m1 '(login|user|email): (.*)' -r '$2'`
|
||||
password=`pass show "$entry" 2>/dev/null | head -n 1`
|
||||
username=`pass show "$entry" 2>/dev/null | rg -m1 '(login|user|email): (.*)' -r '$2'` || true
|
||||
password=`pass show "$entry" 2>/dev/null | head -n 1` || true
|
||||
otp=`pass otp "$entry" 2>/dev/null` || true
|
||||
|
||||
action="$(print_actions_for_entry | wdmenu -p Action)"
|
||||
|
@ -50,8 +50,10 @@ main() {
|
|||
}
|
||||
|
||||
autotype(){
|
||||
if test -n "$username"; then
|
||||
env wtype -s 100 "$username"
|
||||
env wtype -s 100 -k tab
|
||||
fi
|
||||
env wtype -s 100 "$password"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue