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"
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Tue Aug 21 19:18:10 2007
This archive was generated by hypermail 2.1.8
: Sun Oct 07 2007 - 02:38:33 EDT
|