What is Nostr?
djsumdog /
npub109x…wvvl
2025-02-05 19:42:07
in reply to nevent1q…ez49

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.
Author Public Key
npub109x0x9dlft64y4h9vz9mxu92qpqn752sd8p4xe2zkcanlzmk2fcq3pwvvl