-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Change username color to RED when su to root #321
Labels
Comments
Actually a dupe of #155 You can combine
I'm not sure how I want to generalize this. This doesn't compose well with segment colors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Change the default username color to something like blue (via variable, so it's changeable). Then, when user su's to root or logs in as root, change username color to RED. This would be a good visual warning that you might be doing something with root privs by mistake ...
So the _username function would check the euid, and if 0 set color to RED
The text was updated successfully, but these errors were encountered: