Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
newuser recommended config option
- X-seq: zsh-workers 27998
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: newuser recommended config option
- Date: Fri, 4 Jun 2010 20:16:57 +0000
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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