mathiasbynens / dotfiles

:wrench: .files, including ~/.macos — sensible hacker defaults for macOS
https://mths.be/dotfiles
MIT License
30.02k stars 8.74k forks source link

Root rights #919

Closed kenplix closed 4 years ago

kenplix commented 4 years ago

When we get root rights in stdout we get an incorrect display:
sh: prompt_git: command not found I am tried increment PS1 when $USER is not root but it not work.

Problem located in .bash_prompt

gyzerok commented 3 years ago

@AleksandrTolstoy have you figured out how to solve the issue? I have a similar problem