got my bashrc working for my normal login but tried to get it to work the same for my su login as well but whenever i login as su at the terminal i get this error but colors end up working right.
Code:
m3lkor001@Linux12:~$ su
Password:
dircolors: no SHELL environment variable, and no shell type option given
Linux12:/home/m3lkor001#
and here is my .bashrc
Code:
# .bashrc
export PS1='\h:\w\$ '
umask 022
# Adding colour discriptions to files and dirs
export LS_OPTIONS='--color=auto'
eval `dircolors`
alias ls='ls $LS_OPTIONS'
# User specific aliases and functions
alias mono='telnet meson.mono.org'
# Makes current directory title of the console
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
using the same bashrc for my normal and su login.
command i used to copy my .bashrc file for su is (as root)
Code:
cp /home/m3lkor001/.bashrc /root
thanks for the help