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

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).