mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 04:30:24 +02:00
21500: Add script and function as framework for new user stuff.
This commit is contained in:
parent
a4e534dcbc
commit
3d5bececac
7 changed files with 75 additions and 16 deletions
11
Functions/Newuser/zsh-install-newuser
Normal file
11
Functions/Newuser/zsh-install-newuser
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue