From be2e54c0fc23355bb32c5789ce8a423a6e8c59a8 Mon Sep 17 00:00:00 2001 From: Matt Hamilton Date: Thu, 11 Feb 2016 03:08:40 -0500 Subject: [PATCH] [README] create template file if it doesn't exist --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 8d98a6c..f91460c 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ by following the instructions below: setopt EXTENDED_GLOB for template_file ( ${ZDOTDIR:-${HOME}}/.zim/templates/* ); do user_file="${ZDOTDIR:-${HOME}}/.${template_file:t}" + touch ${user_file} ( print -n "$(<${template_file})\n$(<${user_file})" >! ${user_file} ) 2>/dev/null done ```