Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Dec 2018 02:49:48 +0300
From:      Yuri Pankov <yuripv@yuripv.net>
To:        rgrimes@freebsd.org, Edward Tomasz Napierala <trasz@freebsd.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r342576 - head/share/skel
Message-ID:  <aa411dc6-866f-1c65-ece9-d1f4d25af322@yuripv.net>
In-Reply-To: <201812282326.wBSNQp3H052243@pdx.rh.CN85.dnsmgr.net>
References:  <201812282326.wBSNQp3H052243@pdx.rh.CN85.dnsmgr.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--ma69spvSY9IqCIZapbV7JtZcd8y48FAA5
Content-Type: multipart/mixed; boundary="F8zu6r3rI3vgRbn10awMGJLjtnEf3Xw7A";
 protected-headers="v1"
From: Yuri Pankov <yuripv@yuripv.net>
To: rgrimes@freebsd.org, Edward Tomasz Napierala <trasz@freebsd.org>
Cc: src-committers@freebsd.org, svn-src-all@freebsd.org,
 svn-src-head@freebsd.org
Message-ID: <aa411dc6-866f-1c65-ece9-d1f4d25af322@yuripv.net>
Subject: Re: svn commit: r342576 - head/share/skel
References: <201812282326.wBSNQp3H052243@pdx.rh.CN85.dnsmgr.net>
In-Reply-To: <201812282326.wBSNQp3H052243@pdx.rh.CN85.dnsmgr.net>

--F8zu6r3rI3vgRbn10awMGJLjtnEf3Xw7A
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

Rodney W. Grimes wrote:
>> Author: trasz
>> Date: Fri Dec 28 17:50:40 2018
>> New Revision: 342576
>> URL: https://svnweb.freebsd.org/changeset/base/342576
>>
>> Log:
>>   Simplify the way we set the default sh(1) PS1.  No functional change=
s.
>>  =20
>>   Reviewed by:	jilles
>>   MFC after:	2 weeks
>>   Sponsored by:	DARPA, AFRL
>>   Differential Revision:	https://reviews.freebsd.org/D18662
>>
>> Modified:
>>   head/share/skel/dot.shrc
>>
>> Modified: head/share/skel/dot.shrc
>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
>> --- head/share/skel/dot.shrc	Fri Dec 28 17:00:12 2018	(r342575)
>> +++ head/share/skel/dot.shrc	Fri Dec 28 17:50:40 2018	(r342576)
>> @@ -33,11 +33,7 @@ alias g=3D'egrep -i'
>> =20
>> =20
>>  # # set prompt: ``username@hostname$ ''=20
>> -# PS1=3D"`whoami`@`hostname | sed 's/\..*//'`"
>> -# case `id -u` in
>> -# 	0) PS1=3D"${PS1}# ";;
>> -# 	*) PS1=3D"${PS1}$ ";;
>> -# esac
>> +# PS1=3D"`whoami`@\h\\$ "
>=20
> You lost the fact that for root the prompt ends in #

Note that '$' is not literal here.  '\$' is expanded to '$' for normal
users, and to '#' for superusers.

>> =20
>>  # search path for cd(1)
>>  # CDPATH=3D:$HOME
>>
>>
>=20



--F8zu6r3rI3vgRbn10awMGJLjtnEf3Xw7A--

--ma69spvSY9IqCIZapbV7JtZcd8y48FAA5
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEE+Gq3PsPeLT4tL/9wk4vgf7Eq4WwFAlwmtqUACgkQk4vgf7Eq
4WzGfwf+Ldhw3Gn6UONalTItPly+NWE1++/vuBpZNhh24bGF1zWMQUXiCoSAsfLA
EZQZZFqyRj7McwPXRASK6P3fZbHn3avkAyIfDUI6wP9ALVljwLvHzJYlsD6mRM/V
ZyFvcIQxkvzH6SSr6RSPcH0pQGYr1kH7uJLA9uzXtVneijWZp3D3KC/2sViEnX5z
1ceF/oQAYjrb/2Zw5hMqIiwoKiPqCUOBZHOXWmchdg9boL5fW3ZqqLvPBTRhGPnp
4jqajUUAfTqFOkK2fhkENUSxmr4ZxbDwM4TxY5k9JLCfmzbQymDo3YAAT41DelAH
sAlClqVzrZuKfrb1+28WdHucipqylw==
=hBsx
-----END PGP SIGNATURE-----

--ma69spvSY9IqCIZapbV7JtZcd8y48FAA5--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aa411dc6-866f-1c65-ece9-d1f4d25af322>