I have noticed that when I ssh to a server and then su to the root user, I do not get color in bash. In this specific case when I say do not get color in bash I am talking about editing files with vim. Now, if I sudo after login I get color, so no problems there. If I su to root and  source /root/.bash_profile then I get color as root. But I do not want to have to source .bash_profile file every time I su to root. Here are the contents of my /root/.bashrc and /root/.bash_profile files. What can I do to get color when doing su?# .bashrc# User specific aliases and functions# 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'alias rm='rm -i'alias cp='cp -i'alias mv='mv -i'# Source global definitionsif [ -f /etc/bashrc ]; then     . /etc/bashrcfi=============================================# .bash_profile# Get the aliases and functionsif [ -f ~/.bashrc ]; then    . ~/.bashrcfi# User specific environment and startup programsPATH=$PATH:$HOME/binexport PATHalias vi='/usr/bin/vim'alias grep='/bin/grep --color'export EDITOR=/usr/bin/vim# HISTSIZE = number of lines in memory while session is ongoing# HISTFILESIZE = maximum number of lines in the history file on   diskexport HISTSIZE=3000export HISTFILESIZE=5000export HISTFILE=/root/history/.bash_hist-$(who -m | awk '{print   $1}')
colored bash does not work as root user
bash;shell;colors
Either use 'su -' to get a login shell, or move the aliases to ~/.bashrc. See: https://superuser.com/questions/183870/difference-between-bashrc-and-bash-profile/183980#183980