zsh-workers
 help / color / mirror / code / Atom feed
* newuser recommended config option
@ 2010-06-04 20:16 Clint Adams
  2010-06-06 17:33 ` Peter Stephenson
  0 siblings, 1 reply; 4+ messages in thread
From: Clint Adams @ 2010-06-04 20:16 UTC (permalink / raw)
  To: zsh-workers

Thoughts on something like this?

Index: Functions/Newuser/zsh-newuser-install
===================================================================
RCS file: /cvsroot/zsh/zsh/Functions/Newuser/zsh-newuser-install,v
retrieving revision 1.8
diff -u -r1.8 zsh-newuser-install
--- Functions/Newuser/zsh-newuser-install	21 Aug 2009 14:34:54 -0000	1.8
+++ Functions/Newuser/zsh-newuser-install	4 Jun 2010 20:12:52 -0000
@@ -954,6 +954,11 @@
   print -r "
 (1)  Continue to the main menu.
 "
+  if [[ -f /etc/zsh/recommended.zshrc ]]; then
+    print -r "
+(2)  Populate your $zdmsg/.zshrc with the configuration recommended
+     by the system administrator."
+  fi
 
   read -k key$longprompt
   print
@@ -971,6 +976,12 @@
     (1)
     ;;
 
+    (2)
+    cp /etc/zsh/recommended.zshrc $zd/.zshrc
+    source $zd/.zshrc
+    return 0
+    ;;
+
     (*)
     print -r "Aborting."
     if [[ $1 != -f ]]; then


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: newuser recommended config option
  2010-06-04 20:16 newuser recommended config option Clint Adams
@ 2010-06-06 17:33 ` Peter Stephenson
  2010-06-30 13:06   ` Clint Adams
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Stephenson @ 2010-06-06 17:33 UTC (permalink / raw)
  To: zsh-workers

On Fri, 4 Jun 2010 20:16:57 +0000
Clint Adams <clint@zsh.org> wrote:
> Thoughts on something like this?
>...
> +(2)  Populate your $zdmsg/.zshrc with the configuration recommended
> +     by the system administrator."

Looks a reasonable idea. One worry is it might be a lot of work to do this
widely enough to be really usful.  But with the test it's no worse than
harmless.  You might want to note it's incompatible with using
zsh-user-install menus and that the file needs editing by hand, even
though that's kind of hinted at by the context.

-- 
Peter Stephenson <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: newuser recommended config option
  2010-06-06 17:33 ` Peter Stephenson
@ 2010-06-30 13:06   ` Clint Adams
  2010-06-30 13:19     ` Clint Adams
  0 siblings, 1 reply; 4+ messages in thread
From: Clint Adams @ 2010-06-30 13:06 UTC (permalink / raw)
  To: zsh-workers

On Sun, Jun 06, 2010 at 06:33:58PM +0100, Peter Stephenson wrote:
> Looks a reasonable idea. One worry is it might be a lot of work to do this
> widely enough to be really usful.  But with the test it's no worse than
> harmless.  You might want to note it's incompatible with using
> zsh-user-install menus and that the file needs editing by hand, even
> though that's kind of hinted at by the context.

Someone also pointed out that zshrc.recommended sorts "better" than
recommended.zshrc.

Index: Functions/Newuser/zsh-newuser-install
===================================================================
RCS file: /cvsroot/zsh/zsh/Functions/Newuser/zsh-newuser-install,v
retrieving revision 1.9
diff -u -r1.9 zsh-newuser-install
--- Functions/Newuser/zsh-newuser-install	30 Jun 2010 12:49:30 -0000	1.9
+++ Functions/Newuser/zsh-newuser-install	30 Jun 2010 13:05:21 -0000
@@ -954,10 +954,11 @@
   print -r "
 (1)  Continue to the main menu.
 "
-  if [[ -f /etc/zsh/recommended.zshrc ]]; then
+  if [[ -f /etc/zsh/zshrc.recommended ]]; then
     print -r "
 (2)  Populate your $zdmsg/.zshrc with the configuration recommended
-     by the system administrator."
+     by the system administrator and exit (you will need to edit
+     the file by hand, if so desired)."
   fi
 
   read -k key$longprompt
@@ -977,7 +978,7 @@
     ;;
 
     (2)
-    cp /etc/zsh/recommended.zshrc $zd/.zshrc
+    cp /etc/zsh/zshrc.recommended $zd/.zshrc
     source $zd/.zshrc
     return 0
     ;;


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: newuser recommended config option
  2010-06-30 13:06   ` Clint Adams
@ 2010-06-30 13:19     ` Clint Adams
  0 siblings, 0 replies; 4+ messages in thread
From: Clint Adams @ 2010-06-30 13:19 UTC (permalink / raw)
  To: zsh-workers

On Wed, Jun 30, 2010 at 01:06:23PM +0000, Clint Adams wrote:
> Someone also pointed out that zshrc.recommended sorts "better" than
> recommended.zshrc.

In the interests of immediately undermining that, I aim to avoid
confusing anyone by implying that this file should be a
recommended global zshrc.

Index: Functions/Newuser/zsh-newuser-install
===================================================================
RCS file: /cvsroot/zsh/zsh/Functions/Newuser/zsh-newuser-install,v
retrieving revision 1.10
diff -u -r1.10 zsh-newuser-install
--- Functions/Newuser/zsh-newuser-install	30 Jun 2010 13:08:14 -0000	1.10
+++ Functions/Newuser/zsh-newuser-install	30 Jun 2010 13:16:31 -0000
@@ -954,7 +954,7 @@
   print -r "
 (1)  Continue to the main menu.
 "
-  if [[ -f /etc/zsh/zshrc.recommended ]]; then
+  if [[ -f /etc/zsh/newuser.zshrc.recommended ]]; then
     print -r "
 (2)  Populate your $zdmsg/.zshrc with the configuration recommended
      by the system administrator and exit (you will need to edit
@@ -978,7 +978,7 @@
     ;;
 
     (2)
-    cp /etc/zsh/zshrc.recommended $zd/.zshrc
+    cp /etc/zsh/newuser.zshrc.recommended $zd/.zshrc
     source $zd/.zshrc
     return 0
     ;;


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-06-30 13:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-04 20:16 newuser recommended config option Clint Adams
2010-06-06 17:33 ` Peter Stephenson
2010-06-30 13:06   ` Clint Adams
2010-06-30 13:19     ` Clint Adams

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).