- This topic has 3 replies, 2 voices, and was last updated Sep 15-1:52 pm by Xecure.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Forum for users of antiX Linux. Mean and Lean and Proudly anti-fascist.
Forum › Forums › Official Releases › antiX-19 “Marielle Franco, Hannie Schaft, Manolis Glezos, Grup Yorum, Wobblies” › [SOLVED] red bash prompt after creating bash aliases
Hello all,
I’d appreciate some help fixing an issue with my bash prompt. I have it set to the default configuration, but after I created a .bash_aliases file, it is now red as if I’m root. But I’m not root. I run the apt update and I’m prompted for a password. Running the command id shows that my UID is 1000. I can elevate my privileges to root without a problem, but it’s a cosmetic issue. I like being able to see at a glance whether I’m root or not.
If I issue the command source .bashrc then my prompt goes back to the default pink and cyan colors. If I am in Vim, and I execute a shell command, the prompt will be the default pink and cyan. But if I open a new terminal, then the bash prompt is red again. Can anyone suggest what I might do to restore my bash prompt back to its previous behavior?
after I created a .bash_aliases file
Is this file empty or did you add aliases there? Are these aliases copied from a different system that usually runs as root?
The truth is that my experience with bash aliases is limited, so I don’t know how this can affect the user privileges.
antiX Live system enthusiast.
General Live Boot Parameters for antiX.
I fixed it with the following command:
echo '. .bashrc' >> ~/.bash_profiles
Turns out that bash wasn’t sure in what order to process everything, so the above command tells bash to source the bashrc file every time I open a terminal. My aliases all work and my terminal colors are all back to where they are supposed to be.
Thanks for coming back and reporting your solution. It may help others in the future.
antiX Live system enthusiast.
General Live Boot Parameters for antiX.
| Cookie | Duration | Description |
|---|---|---|
| cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
| cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
| cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
| cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
| cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
| viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |