[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: .bashrc problem--"ls" output and root prompt



2007/8/21, Dr. Jennifer Nussbaum <bg271828@yahoo.com>:
>
> Im a new Debian Etch user, coming from FreeBSD. When i
> first installed my system, running the "ls" command
> would
> give me coloured output (executables one colour,
> directories another). Also, when I sudo'ed to root, i
> would get the usual "#" prompt as root.
>
> I then copied over my (straightforward) .bashrc file,
> and now i dont have the colored output and sudoing to
> root
> leaves me with a "$" prompt. (I do reset my PS1 line,
> but i dont know how to have a different one for root,
> keeping
> the "#".) Can someone give me a suggestion? My
> complete
> .bashrc, less comments, and with my CVSROOT masked,
> is:
>
> ---
> PS1='\h\w $ ';   export PS1
> BLOCKSIZE=K;    export BLOCKSIZE
> EDITOR=emacs;   export EDITOR
> CVS_RSH=ssh; export CVS_RSH
> CVSROOT= [HIDDEN]; export CVSROOT
> PATH="${PATH}":/sbin:/usr/sbin
> ---
>
> So, nothing fancy. How do i get my coloured "ls" back,
> and my "#" prompt as sudo'ed root?


Hi,

try to add:

alias ls='ls --color=auto'

Best regards,
Sergio Cuellar


-- 
"Meine Hoffnung soll mich leiten
Durch die Tage ohne Dich
Und die Liebe soll mich tragen
Wenn der Schmerz die Hoffnung bricht"



Reply to: