Last active
March 21, 2018 15:30
-
-
Save borjadotai/9f86764227a414254c9ead5c980b5c84 to your computer and use it in GitHub Desktop.
ZIM config - medium article
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setopt EXTENDED_GLOB | |
for template_file ( ${ZDOTDIR:-${HOME}}/.zim/templates/* ); do | |
user_file="${ZDOTDIR:-${HOME}}/.${template_file:t}" | |
touch ${user_file} | |
( print -rn "$(<${template_file})$(<${user_file})" >! ${user_file} ) 2>/dev/null | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment