From 5371975f372d8b6aba46668c1933d807f91fc724 Mon Sep 17 00:00:00 2001 From: Eric Nielsen Date: Sat, 5 Jan 2019 18:18:42 -0500 Subject: [PATCH] Update README.md instructions > You should never have a pipeline both reading from and writing to a file. My bad. See https://stackoverflow.com/a/25335116/2654518 Fixes #316 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7ad1875..2ecafa4 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ Installing Zim is easy. If you have a different shell framework installed (like for template_file in ${ZDOTDIR:-${HOME}}/.zim/templates/*; do user_file="${ZDOTDIR:-${HOME}}/.${template_file:t}" - cat ${template_file} ${user_file}(.N) >! ${user_file} + cat ${template_file} ${user_file}(.N) > ${user_file}.tmp && mv ${user_file}{.tmp,} done 4. Set Zsh as the default shell: