From fbb748252a27fe97954cb7e07931de8955d248be Mon Sep 17 00:00:00 2001 From: Matt Hamilton Date: Tue, 29 Dec 2015 10:22:27 -0500 Subject: [PATCH] Make note of prepend, silence error If a file doesn't exist, "$(/dev/null" to silence these outputs. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 93543bd..78ee1c1 100644 --- a/README.md +++ b/README.md @@ -45,12 +45,12 @@ uninstall those first to prevent conflicts. git clone --recursive https://github.com/Eriner/zim.git ${ZDOTDIR:-${HOME}}/.zim ``` -2. Paste this into your terminal to copy the template configuration files (or append to existing configs): +2. Paste this into your terminal to prepend the initialization templates to your configs: ``` setopt EXTENDED_GLOB for template_file ( ${ZDOTDIR:-${HOME}}/.zim/templates/* ); do user_file="${ZDOTDIR:-${HOME}}/.${${template_file}:t}" - print -n "$(<${template_file})\n$(<${user_file})" >! ${user_file} + ( print -n "$(<${template_file})\n$(<${user_file})" >! ${user_file} ) 2>/dev/null done ```