summary refs log tree commit diff
path: root/Functions/Newuser
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2005-07-20 18:08:39 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2005-07-20 18:08:39 +0000
commit3d5bececac2f5de845e56eb953ae8ab127e7904f (patch)
tree739be17480b8d7ae13eb4db6fc4c0cdabd87e2fb /Functions/Newuser
parenta4e534dcbc8238ddf13a1102f21681ee8735adcf (diff)
downloadzsh-3d5bececac2f5de845e56eb953ae8ab127e7904f.tar.gz
zsh-3d5bececac2f5de845e56eb953ae8ab127e7904f.tar.xz
zsh-3d5bececac2f5de845e56eb953ae8ab127e7904f.zip
21500: Add script and function as framework for new user stuff.
Diffstat (limited to 'Functions/Newuser')
-rw-r--r--Functions/Newuser/zsh-install-newuser11
1 files changed, 11 insertions, 0 deletions
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