-   Linux - General (
-   -   Terminal Colors (

carlosinfl 02-25-2007 12:38 PM

Terminal Colors
I noticed that when I su to root, I lose all my colors in gnome terminal. I was wondering if there is a way to enable this as root and not have everything show up as white as it can be confusing not knowing if it's a file or directory. The colors just help me I guess.

I edited my /root/bashrc to look like so and everything is still white. What am I missing?

My bash.rc file:


# ~/.bashrc: executed by bash(1) for non-login shells.

export PS1='\h:\w\$ '
umask 022

# You may uncomment the following lines if you want `ls' to be colorized:
export LS_OPTIONS='--color=auto'
eval "`dircolors`"
# alias ls='ls $LS_OPTIONS'
# alias ll='ls $LS_OPTIONS -l'
# alias l='ls $LS_OPTIONS -lA'
# Some more alias to avoid making mistakes:
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

My terminal

bigrigdriver 02-25-2007 02:59 PM

I've read somewhere of a file tweak to allow that, but I can't find it at the moment.

An alternate which is used when root wants to use a graphical app is to give this command as user, before the su to root:

xhost +localhost

Since colors are graphical display, that may work for terminal colors as well.

All times are GMT -5. The time now is 02:28 AM.