Browse Source

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
Eric Nielsen 5 years ago
parent
commit
5371975f37
1 changed files with 1 additions and 1 deletions
  1. 1 1
      README.md

+ 1 - 1
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: