Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo mailing list <gentoo-dev@g.o>
From: Morgan Christiansson <mcn0816@...>
Subject: /etc/profile
Date: Sun Jan 14 15:48:01 2001
$PS1 var:

I think this should be the opposite, if the user isn't root let the user
know who they are.

And if they are root, give them the "supershell" without the user-name.


if [ `/usr/bin/whoami` == 'root' ] ; then
         export PS1='\[\033[01;32;40m\]\u@\h \[\033[01;34;40m\]\W 
 >\[\033[00m\]'
         export PATH=/sbin:/usr/sbin:$PATH
else
         export PS1='\[\033[01;34;40m\]\W > \[\033[00m\]'
         export PATH=$PATH
fi

----------------------------------------------------------------------

ls alias:

I think "alias ls='ls --color=auto'" should be in /etc/profile.

Most other distros have it and besides, it's a lot more readable.

I saw there were other aliases such as "alias d='ls --color'" but i've
never used them.

-- 
Morgan Christiansson


Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
keymaps
Next by thread:
/etc/profile
Previous by date:
keymaps
Next by date:
Re: bugs


Updated Jun 17, 2009

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.