Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Former Member
3 years agoAutofill in terminal prompts
Based on previous discussions, it seems like the universal autofill only works in a sudo prompt.
Is there any plan to add support for autofill in general for prompts like MySQL client login or othe...
Former Member
3 years agoHi @1P_Amanda,
I am looking for the universal autofill to work in terminals.
For example, when running commands like mysql -u user -p
, or any command that waits for a password input.
Currently, 1password does not autofill passwords on prompts like these, when the cursor is in the terminal and I click the autofill option from the Quick Access menu (Cmd+Shift+Space). It only autofills when there is a login shell prompt (like for sudo).
For terminal password prompts seen locally, one can workaround by passing the output of op item get
using pipes or stdin. But that is not possible for remote ssh sessions where installing the CLI is not allowed. It would be great if the 1P universal autofill / quick access could do this natively.
For now, I have to use the password manager built into https://iterm2.com/features.html#:%7E:text=iTerm2%27s%20built%2Din%20password%20manager to do this (which causes the password to be stored in multiple locations, 1P and keychain), or create a https://www.raycast.com/ extension like this: https://github.com/nirantak/dotfiles/blob/main/raycast/xpass.py to do the autofill.
Thanks,
Nirantak