From 40cbc82ac33a40bd21c165ccfee7afd83fea973a Mon Sep 17 00:00:00 2001 From: Matt Hamilton Date: Sat, 14 May 2016 14:28:15 -0700 Subject: [PATCH] [install] ignore escapes in user configs closes issue #45 --- README.md | 2 +- templates/zimrc | 2 ++ templates/zlogin | 2 ++ templates/zshrc | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f91460c..f629ad4 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ by following the instructions below: 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 + ( print -rn "$(<${template_file})$(<${user_file})" >! ${user_file} ) 2>/dev/null done ``` diff --git a/templates/zimrc b/templates/zimrc index 7250fe8..f89691a 100644 --- a/templates/zimrc +++ b/templates/zimrc @@ -1,3 +1,5 @@ + + ################# # CORE SETTINGS # ################# diff --git a/templates/zlogin b/templates/zlogin index 36b9e02..f05b263 100644 --- a/templates/zlogin +++ b/templates/zlogin @@ -1,3 +1,5 @@ + + # # startup file read in interactive login shells # diff --git a/templates/zshrc b/templates/zshrc index ee13729..e640dcc 100644 --- a/templates/zshrc +++ b/templates/zshrc @@ -1,3 +1,5 @@ + + # # User configuration sourced by interactive shells #