diff --git a/README.md b/README.md index 9acb0e6..93543bd 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,8 @@ uninstall those first to prevent conflicts. ``` setopt EXTENDED_GLOB for template_file ( ${ZDOTDIR:-${HOME}}/.zim/templates/* ); do - cat ${template_file} | tee -a ${ZDOTDIR:-${HOME}}/.$(basename ${template_file}) > /dev/null + user_file="${ZDOTDIR:-${HOME}}/.${${template_file}:t}" + print -n "$(<${template_file})\n$(<${user_file})" >! ${user_file} done ```