I'm running a VPS with Centos 6.5
I've setup ~/.bash_profile
as in the following screenshot:
It used to give me an output like this:
Now that I've installed WHM/Cpanel I no longer see coloured prompt.
echo $PATH
shows:
/usr/local/jdk/bin:/home/jay/perl5/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11R6/bin:/home/jay/bin
How can I fix this? Can anyone help me?
Everything else works according to the configuration. Grep and ls shows coloured outputs. I need this to work as I find it convenient to quickly spot previous commands and outputs.
$PATH
is not a command but an environment variable where are stored directories containing binaries to run directly in the command line (without typing the full path). Typeecho $PATH
to display its value.Your $PATH variable seems to be OK. and Have nothing to do with your issue.
– Slyx Apr 09 '14 at 10:25echo $PS1
to see if its value was altered. May be the $PS1 is modified elsewhere before you get the prompt. If so, type. .bash_profile
to reload it. – Slyx Apr 09 '14 at 10:41~/.bash_profile
won't get sourced, only.bashrc
. How are you starting bash? If you are simply typingbash
from the command line andPATH
is also set inside your.bashrc
, then this would explain what you see. – Graeme Apr 09 '14 at 10:56/etc/bashrc
and give every user the same prompt, you should put your prompt in~/.bashrc
. – chepner Apr 09 '14 at 20:44