about summary refs log tree commit diff
path: root/Functions/Newuser
diff options
context:
space:
mode:
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