Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

newuser recommended config option



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



Messages sorted by: Reverse Date, Date, Thread, Author