From 8f59e40efbbfd16213ccd2fbf31f28cd04d41989 Mon Sep 17 00:00:00 2001 From: Andrea Mistrali Date: Fri, 14 Feb 2020 14:28:00 +0100 Subject: [PATCH] Fix 99-local file --- zshrc | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/zshrc b/zshrc index 346dff2..eb03b94 100644 --- a/zshrc +++ b/zshrc @@ -23,10 +23,10 @@ function loadRC { fpath=($1/completions $fpath) fi - # Add local customization file - if [ -w $1 ]; then - [ -f $1/99-local.zsh ] || echo "# Local customizations" > $1/99-local.zsh - fi + # # Add local customization file + # if [ -w $1 ]; then + # [ -f $1/99-local.zsh ] || echo "# Local customizations" > $1/99-local.zsh + # fi # Process all .zsh files for zshFile in $1/[0-9]*.zsh; do @@ -40,3 +40,9 @@ local KERNLIB=${LIBRARY}/${KERNEL} loadRC ${LIBRARY} loadRC ${KERNLIB} + +# Add local customization file +if [ -w $LIBRARY ]; then + [ -f $LIBRARY/99-local.zsh ] || echo "# Local customizations" > $LIBRARY/99-local.zsh +fi +