Replies: 1 comment 1 reply
-
To detect |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I sometimes
sudo -iu user
orsudo su - user
to useruser
. And in these cases it would be nice to have the context menu or at least the username permanently in the prompt to be able to differentiate between terminal windows.Does anyone know if I can detect if I switched user in either or both these cases, so I can enable the context segment?
I don't think
sudo -E
would be the right fit for two reasons. 1. I didn't get it to work with non-root 2. The user's p10k should be used.Beta Was this translation helpful? Give feedback.
All reactions