Gentoo Archives: gentoo-dev

From: Morgan Christiansson <mcn0816@×××××××.se>
To: gentoo mailing list <gentoo-dev@g.o>
Subject: [gentoo-dev] /etc/profile
Date: Sun, 14 Jan 2001 15:47:43
Message-Id: 3A61F1D5.1070807@mobigym.se
$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