about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2010-06-30 12:49:29 +0000
committerClint Adams <clint@users.sourceforge.net>2010-06-30 12:49:29 +0000
commite1772fd0462b7657220e7edee86ceba8ea1a7fdd (patch)
tree32f202036f57fe0370bfda4db80e2c5181834352
parent20b3a407837ea16c12bee3133cbbb65cc2c0fe0c (diff)
downloadzsh-e1772fd0462b7657220e7edee86ceba8ea1a7fdd.tar.gz
zsh-e1772fd0462b7657220e7edee86ceba8ea1a7fdd.tar.xz
zsh-e1772fd0462b7657220e7edee86ceba8ea1a7fdd.zip
27998: add recommended zshrc option.
-rw-r--r--ChangeLog7
-rw-r--r--Functions/Newuser/zsh-newuser-install11
2 files changed, 17 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4f4017e51..0068ca37e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-06-30  Clint Adams  <clint@zsh.org>
+
+	* 27998: Functions/Newuser/zsh-newuser-install: add recommended
+	zshrc option.
+
 2010-06-23  Doug Kearns  <dougkearns@gmail.com>
 
 	* 28056: Completion/Unix/Command/_lynx: add option descriptions.
@@ -13335,5 +13340,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.5015 $
+* $Revision: 1.5016 $
 *****************************************************
diff --git a/Functions/Newuser/zsh-newuser-install b/Functions/Newuser/zsh-newuser-install
index 84d68a831..97b33cfc5 100644
--- a/Functions/Newuser/zsh-newuser-install
+++ b/Functions/Newuser/zsh-newuser-install
@@ -954,6 +954,11 @@ You can:
   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 @@ You can:
     (1)
     ;;
 
+    (2)
+    cp /etc/zsh/recommended.zshrc $zd/.zshrc
+    source $zd/.zshrc
+    return 0
+    ;;
+
     (*)
     print -r "Aborting."
     if [[ $1 != -f ]]; then