Skip to content
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

Another color for root user #499

Open
vitaly-zdanevich opened this issue Jul 28, 2022 · 2 comments
Open

Another color for root user #499

vitaly-zdanevich opened this issue Jul 28, 2022 · 2 comments

Comments

@vitaly-zdanevich
Copy link
Contributor

vitaly-zdanevich commented Jul 28, 2022

Maybe turn path to red by default?

@cClaude
Copy link
Contributor

cClaude commented Dec 23, 2023

@vitaly-zdanevich it would be better to consider not using the root account with git, but rather to give rights to a user (possibly technical) for the folder where the clone must be carried out. It seems to me a problem to use root for this type of manipulation, it is encouraged to do everything with the root account.

This issue encourages bad practices and should be closed.

For the specific problem raised by this issue, I think a customization of the override_git_prompt_colors() function should do the trick. Here again this justifies closing the issue.

@vitaly-zdanevich
Copy link
Contributor Author

@cClaude For example I have /usr/src/linux with my kernel config - I operate with it under root, and commit/push also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants