From a05890e8b47e1f4071936ec69d2b77522edfd3d3 Mon Sep 17 00:00:00 2001 From: Eric Nielsen Date: Wed, 21 Nov 2018 11:58:30 -0500 Subject: [PATCH] Use cat to concatenate files in installation Update installation instructions in README.md to use cat. Also add blank lines at the end (instead of beginning) of template files, since they're prepended (not appended) to existing files. See difference of output between print and cat (zlogin having a blank like at the end): % print -rn "$(! ${user_file} ) 2>/dev/null + cat ${template_file} ${user_file}(.N) >! ${user_file} done ``` diff --git a/templates/zimrc b/templates/zimrc index 8800b41..b6e70c6 100644 --- a/templates/zimrc +++ b/templates/zimrc @@ -1,5 +1,3 @@ - - ################# # CORE SETTINGS # ################# @@ -78,7 +76,6 @@ zinput_mode='emacs' # removing the 'cursor' highlighter will fix the disappearing cursor problem zhighlighters=(main brackets cursor) - # # SSH # @@ -86,7 +83,6 @@ zhighlighters=(main brackets cursor) # Load these ssh identities with the ssh module #zssh_ids=(id_rsa) - # # Pacman # @@ -96,3 +92,5 @@ zhighlighters=(main brackets cursor) # Load any helper scripts as defined here #zpacman_helper=(aur) + + diff --git a/templates/zlogin b/templates/zlogin index a9af863..d174793 100644 --- a/templates/zlogin +++ b/templates/zlogin @@ -1,8 +1,7 @@ - - # # User configuration sourced by login shells # # Initialize zim [[ -s ${ZIM_HOME}/login_init.zsh ]] && source ${ZIM_HOME}/login_init.zsh + diff --git a/templates/zshrc b/templates/zshrc index eab16b8..4e84ff1 100644 --- a/templates/zshrc +++ b/templates/zshrc @@ -1,11 +1,10 @@ - - # # User configuration sourced by interactive shells # -# Change default zim location +# Define zim location export ZIM_HOME=${ZDOTDIR:-${HOME}}/.zim # Start zim [[ -s ${ZIM_HOME}/init.zsh ]] && source ${ZIM_HOME}/init.zsh +