Re: svn commit: r342812 - head/share/skel

2019-01-06 Thread Edward Napierala
niedz., 6 sty 2019 o 16:50 Cy Schubert  napisaƂ(a):
>
> In message <201901061623.x06gns1w057...@repo.freebsd.org>, Edward
> Tomasz Napier
> ala writes:
> > Author: trasz
> > Date: Sun Jan  6 16:23:28 2019
> > New Revision: 342812
> > URL: https://svnweb.freebsd.org/changeset/base/342812
> >
> > Log:
> >   Give sh(1) a proper default prompt instead of just "$".
> >
> >   Reviewed by:jilles
> >   MFC after:  2 weeks
> >   Relnotes:   totally
> >   Sponsored by:   DARPA, AFRL
> >   Differential Revision:  https://reviews.freebsd.org/D18697
> >
> > Modified:
> >   head/share/skel/dot.shrc
> >
> > Modified: head/share/skel/dot.shrc
> > =
> > =
> > --- head/share/skel/dot.shrc  Sun Jan  6 05:07:52 2019(r342811)
> > +++ head/share/skel/dot.shrc  Sun Jan  6 16:23:28 2019(r342812)
> > @@ -32,8 +32,8 @@ alias g='egrep -i'
> >  # alias rm='rm -i'
> >
> >
> > -# # set prompt: ``username@hostname:directory $ ''
> > -# PS1="`whoami`@\h:\w \\$ "
> > +# set prompt: ``username@hostname:directory $ ''
> > +PS1="`whoami`@\h:\w \\$ "
> >
> >  # search path for cd(1)
> >  # CDPATH=:$HOME
> >
>
> Hmmm. At $JOB the RHEL servers use this prompt. IMO the prompt is
> unwieldy and distracting. Instead of \w could we use \W instead?

The whole point of this change is to make things a little less weird
for newcomers; existing users either use one of the shells from ports,
or just carry their own shell rc file with their preferred PS1; either way
they probably won't even notice.

That's why I chose to follow the _actual_ status quo, both in FreeBSD
(the new prompt is the same as the csh(1) one, apart from the '$')
and Linux.  Thus the '\w'.
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r342812 - head/share/skel

2019-01-06 Thread Rodney W. Grimes
> In message <201901061623.x06gns1w057...@repo.freebsd.org>, Edward 
> Tomasz Napier
> ala writes:
> > Author: trasz
> > Date: Sun Jan  6 16:23:28 2019
> > New Revision: 342812
> > URL: https://svnweb.freebsd.org/changeset/base/342812
> >
> > Log:
> >   Give sh(1) a proper default prompt instead of just "$".
> >   
> >   Reviewed by:  jilles
> >   MFC after:2 weeks
> >   Relnotes: totally
> >   Sponsored by: DARPA, AFRL
> >   Differential Revision:https://reviews.freebsd.org/D18697
> >
> > Modified:
> >   head/share/skel/dot.shrc
> >
> > Modified: head/share/skel/dot.shrc
> > =
> > =
> > --- head/share/skel/dot.shrcSun Jan  6 05:07:52 2019
> > (r342811)
> > +++ head/share/skel/dot.shrcSun Jan  6 16:23:28 2019
> > (r342812)
> > @@ -32,8 +32,8 @@ alias g='egrep -i'
> >  # alias rm='rm -i'
> >  
> >  
> > -# # set prompt: ``username@hostname:directory $ '' 
> > -# PS1="`whoami`@\h:\w \\$ "
> > +# set prompt: ``username@hostname:directory $ '' 
> > +PS1="`whoami`@\h:\w \\$ "
> >  
> >  # search path for cd(1)
> >  # CDPATH=:$HOME
> >
> 
> Hmmm. At $JOB the RHEL servers use this prompt. IMO the prompt is 
> unwieldy and distracting. Instead of \w could we use \W instead?

Or you just could leave 30 year old status quo in place,
people who want other things have long ago dealt with
this and your just creating new things they have to
deal with, like undoing your tweaking of defaults,
which cause local customization patches to now fail
because you change the line they are trying to patch.

-- 
Rod Grimes rgri...@freebsd.org
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r342812 - head/share/skel

2019-01-06 Thread Cy Schubert
In message <201901061623.x06gns1w057...@repo.freebsd.org>, Edward 
Tomasz Napier
ala writes:
> Author: trasz
> Date: Sun Jan  6 16:23:28 2019
> New Revision: 342812
> URL: https://svnweb.freebsd.org/changeset/base/342812
>
> Log:
>   Give sh(1) a proper default prompt instead of just "$".
>   
>   Reviewed by:jilles
>   MFC after:  2 weeks
>   Relnotes:   totally
>   Sponsored by:   DARPA, AFRL
>   Differential Revision:  https://reviews.freebsd.org/D18697
>
> Modified:
>   head/share/skel/dot.shrc
>
> Modified: head/share/skel/dot.shrc
> =
> =
> --- head/share/skel/dot.shrc  Sun Jan  6 05:07:52 2019(r342811)
> +++ head/share/skel/dot.shrc  Sun Jan  6 16:23:28 2019(r342812)
> @@ -32,8 +32,8 @@ alias g='egrep -i'
>  # alias rm='rm -i'
>  
>  
> -# # set prompt: ``username@hostname:directory $ '' 
> -# PS1="`whoami`@\h:\w \\$ "
> +# set prompt: ``username@hostname:directory $ '' 
> +PS1="`whoami`@\h:\w \\$ "
>  
>  # search path for cd(1)
>  # CDPATH=:$HOME
>

Hmmm. At $JOB the RHEL servers use this prompt. IMO the prompt is 
unwieldy and distracting. Instead of \w could we use \W instead?


-- 
Cheers,
Cy Schubert 
FreeBSD UNIX: Web:  http://www.FreeBSD.org

The need of the many outweighs the greed of the few.


___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r342812 - head/share/skel

2019-01-06 Thread Edward Tomasz Napierala
Author: trasz
Date: Sun Jan  6 16:23:28 2019
New Revision: 342812
URL: https://svnweb.freebsd.org/changeset/base/342812

Log:
  Give sh(1) a proper default prompt instead of just "$".
  
  Reviewed by:  jilles
  MFC after:2 weeks
  Relnotes: totally
  Sponsored by: DARPA, AFRL
  Differential Revision:https://reviews.freebsd.org/D18697

Modified:
  head/share/skel/dot.shrc

Modified: head/share/skel/dot.shrc
==
--- head/share/skel/dot.shrcSun Jan  6 05:07:52 2019(r342811)
+++ head/share/skel/dot.shrcSun Jan  6 16:23:28 2019(r342812)
@@ -32,8 +32,8 @@ alias g='egrep -i'
 # alias rm='rm -i'
 
 
-# # set prompt: ``username@hostname:directory $ '' 
-# PS1="`whoami`@\h:\w \\$ "
+# set prompt: ``username@hostname:directory $ '' 
+PS1="`whoami`@\h:\w \\$ "
 
 # search path for cd(1)
 # CDPATH=:$HOME
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"