From 3d5bececac2f5de845e56eb953ae8ab127e7904f Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 20 Jul 2005 18:08:39 +0000 Subject: 21500: Add script and function as framework for new user stuff. --- Functions/Newuser/zsh-install-newuser | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Functions/Newuser/zsh-install-newuser (limited to 'Functions/Newuser') diff --git a/Functions/Newuser/zsh-install-newuser b/Functions/Newuser/zsh-install-newuser new file mode 100644 index 000000000..40bba720d --- /dev/null +++ b/Functions/Newuser/zsh-install-newuser @@ -0,0 +1,11 @@ +# Function to install startup files for a new user. +# This dummy version simply creates a new .zshrc with a comment. +# FIXME: we don't want to distribute a file that does that, it +# would be preferable to do nothing at all. + +# Sanitize environment. +emulate -L zsh + +echo "# Created by newuser for $ZSH_VERSION" >${ZDOTDIR:-$HOME}/.zshrc + +unfunction zsh-install-newuser -- cgit 1.4.1