I noticed that when I login to my new Arch server & attempt to use commands like 'ls' or 'ls -l', I have no color. It's just white text so it's hard to visually differentiate the difference between files and directories. I did read the Wiki below which advises me to modify my ~/.bashrc which comes from /etc/skel/.bashrc however when I am logged in as root, I want to have this colored output feature. I checked and my /root directory has no .bashrc file. When I attempt to create one & add the parameters I have in my ~/.bashrc, I then log out and log back in as root but still have no color. How do I make this system wide? When I modify my regular user's .bashrc file, I do get my desired color output but I can't figure out how to achieve this for 'root'. http://wiki.archlinux.org/index.php/Color_Bash_Prompt
On Thu, Feb 4, 2010 at 11:41 AM, Carlos Williams <carloswill@gmail.com> wrote:
When I modify my regular user's .bashrc file, I do get my desired color output but I can't figure out how to achieve this for 'root'.
As root, create the file `$HOME/.bash_profile` with the content: . $HOME/.bashrc This file is in `/etc/skel` as well. HTH -- Andrew Antle <andrew dot antle at gmail dot com>
On Thu, Feb 4, 2010 at 11:51 AM, Andrew Antle <andrew.antle@gmail.com> wrote:
As root, create the file `$HOME/.bash_profile` with the content:
. $HOME/.bashrc
This file is in `/etc/skel` as well.
So I need to do the following? cd /root echo ".$HOME/.bashrc" >> /root/.bash_profile I don't get what I am pointing at in the '.bash_profile' file. Am I suppose to create a .bashrc file in /root?
On 02/04/2010 11:48 AM, Carlos Williams wrote:
On Thu, Feb 4, 2010 at 11:51 AM, Andrew Antle<andrew.antle@gmail.com> wrote:
As root, create the file `$HOME/.bash_profile` with the content:
. $HOME/.bashrc
This file is in `/etc/skel` as well.
So I need to do the following?
cd /root echo ".$HOME/.bashrc">> /root/.bash_profile
I don't get what I am pointing at in the '.bash_profile' file. Am I suppose to create a .bashrc file in /root?
That's the traditional way to do it.
On Thu, Feb 4, 2010 at 1:01 PM, Daniel Griffiths <ghost1227@archlinux.us> wrote:
That's the traditional way to do it.
OK - thanks. I modified my /etc/skel/.bashrc file to reflect color for both ls & grep. This means all new users will have this created in their .bashrc, correct?
On 02/04/2010 12:04 PM, Carlos Williams wrote:
On Thu, Feb 4, 2010 at 1:01 PM, Daniel Griffiths<ghost1227@archlinux.us> wrote:
That's the traditional way to do it.
OK - thanks. I modified my /etc/skel/.bashrc file to reflect color for both ls& grep. This means all new users will have this created in their .bashrc, correct?
Yes
On Thu, Feb 4, 2010 at 3:48 PM, Carlos Williams <carloswill@gmail.com> wrote:
So I need to do the following?
cd /root echo ".$HOME/.bashrc" >> /root/.bash_profile
I don't get what I am pointing at in the '.bash_profile' file. Am I suppose to create a .bashrc file in /root?
Yes, you're suppose to have a .bashrc in /root with the colour stuff in it. Also, you forgot a space between . and $HOME. It should be: echo ". $HOME/.bashrc" >> /root/.bash_profile
Carlos Williams wrote:
On Thu, Feb 4, 2010 at 11:51 AM, Andrew Antle <andrew.antle@gmail.com> wrote:
As root, create the file `$HOME/.bash_profile` with the content:
 . $HOME/.bashrc
This file is in `/etc/skel` as well.
So I need to do the following?
cd /root echo ".$HOME/.bashrc" >> /root/.bash_profile
I don't get what I am pointing at in the '.bash_profile' file. Am I suppose to create a .bashrc file in /root?
or ln -s .bashrc .profile in your $HOME
participants (5)
-
Andrew Antle
-
Baho Utot
-
Carlos Williams
-
Daniel Griffiths
-
Guilherme M. Nogueira