djsumdog on Nostr: We use it at work, but I've never used it for a terminal use case. I don't think so? ...
We use it at work, but I've never used it for a terminal use case. I don't think so? Like how would that even work?
I imagine you'd have a custom function or alias in your shell to replace/override the sudo command, then call some 1Password API, show a popup, and return the actual password to the sudo command. I don't think sudo can take parameters for the password, so it would have to redirect it to sudo's stdin. And at that point, you've captured the shell and it can't really be returned to you to be interactive again.
Have you looked around. There'd have to be some custom scripts for this to work.
I imagine you'd have a custom function or alias in your shell to replace/override the sudo command, then call some 1Password API, show a popup, and return the actual password to the sudo command. I don't think sudo can take parameters for the password, so it would have to redirect it to sudo's stdin. And at that point, you've captured the shell and it can't really be returned to you to be interactive again.
Have you looked around. There'd have to be some custom scripts for this to work.