~/.bashrc, /etc/bash.bashrc files not read?
Trying to set permanent changes to the bash prompt in Slackware 14.
On my linux mint the colors are set in /etc/bash.bashrc Reading the doc /usr/doc/Linux-HOWTOs/Bash-Prompt-HOWTO seems to suggest that prompt settings should be set in ~/.bashrc I created the following .bashrc file but it does not seem to be read when logging in: Code:
if [[ ${EUID} == 0 ]] ; then |
Your login is not loading the ~/.bashrc...
Slackware does not add (many) things not included in the upstream packages, and that includes the optional config files for bash added by some other distros. For the order and precedence of bash configs, as always, see man bash (INVOCATION section). But to get you going here is a quick summary: Quote:
Code:
if [ -f ~/.bashrc ]; then Code:
if [ -f /etc/bashrc ]; then |
Thank you! It was that missing .bash_profile. I see also I must create files in the /root/ directory too if I want a custom root prompt.
|
Quote:
If you have multiple users on the system you might want to create the .bash_profile and .bashrc in /etc/skel/ when you first install, then any users you create will get their own copy. |
All times are GMT -5. The time now is 07:20 AM. |