Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: newuser recommended config option
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
;;
Messages sorted by:
Reverse Date,
Date,
Thread,
Author