bash-git-prompt icon indicating copy to clipboard operation
bash-git-prompt copied to clipboard

Another color for root user

Open vitaly-zdanevich opened this issue 3 years ago • 2 comments

Maybe turn path to red by default?

vitaly-zdanevich avatar Jul 28 '22 11:07 vitaly-zdanevich

@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.

cClaude avatar Dec 23 '23 10:12 cClaude

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

vitaly-zdanevich avatar Dec 23 '23 18:12 vitaly-zdanevich