Some quick questions
Smoot Carl-Mitchell
smoot at tic.com
Mon Jun 15 17:03:41 UTC 2009
On Tue, 2009-06-16 at 00:21 +0800, Roy M. wrote:
> Hey
>
> On Mon, Jun 15, 2009 at 11:28 PM, Preston Kutzner<shizzlecash at gmail.com> wrote:
> > If you're looking to set the system-wide value, you can change it in /
> > etc/profile. If you're looking to change it only for your account,
> > you can change it by adding the appropriate PS1 lines to your ~/.profile
> >
>
> Thanks.
>
> I put in /etc/profile but only normal users can get the effect.
>
> If I change root, then I cannot get the desired PS1.
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
The above is the logic in /etc/profile to set PS1. root's prompt is set
to '#' and everyone else to '$'. root also has its own .profile which
further manipulates the environment and PS1, IIRC.
--
Smoot Carl-Mitchell
Computer Systems and
Network Consultant
smoot at tic.com
+1 480 922 7313
cell: +1 602 421 9005
More information about the ubuntu-users
mailing list