diff --git a/README.md b/README.md index 6eaaa4c..00b36af 100644 --- a/README.md +++ b/README.md @@ -47,11 +47,9 @@ Installing Zim is easy. If you have a different shell framework installed (like 2. Paste this into your terminal to prepend the initialization templates to your configs: ``` - setopt EXTENDED_GLOB for template_file in ${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 + 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 +