From e1772fd0462b7657220e7edee86ceba8ea1a7fdd Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Wed, 30 Jun 2010 12:49:29 +0000 Subject: 27998: add recommended zshrc option. --- Functions/Newuser/zsh-newuser-install | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Functions') 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 -- cgit 1.4.1