-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show sudo credential status #335
Comments
Change the color of the prompt mark while 'sudo' credentials are cached. New variables: - LP_ENABLE_SUDO - LP_COLOR_MARK_SUDO #335
Implemented! Now in |
I think the liquid.ps1 file should be updated to reflect these changes as well 😉 |
Change the color of the prompt mark while 'sudo' credentials are cached. New variables: - LP_ENABLE_SUDO - LP_COLOR_MARK_SUDO liquidprompt#335 Conflicts: default.theme liquidprompt liquidpromptrc
Can LP_ENABLE_SUDO be changed to default to 0? If the user is not permitted to run sudo commands, it will trigger a sudo event: I had a customer trigger 50+ sudo alerts over the course of the day due to this. |
When you run
sudo
, the credentials may be saved bysudo
for that shell. This means that any command running from that shell will be able to use those credentials. So it is safer for the user to remember to remove those credentials once he doesn't need it anymore. Liquid Prompt is a good place to signal the user thatsudo
credentials are active.To check
sudo
credentials (returns 0 if credentials are cached, 1 if not):To expire your credentials:
To renew your credentials for 15 minutes:
The text was updated successfully, but these errors were encountered: