mirror of https://github.com/akelge/zsh
Fix 99-local file
This commit is contained in:
parent
dc8cadae4d
commit
8f59e40efb
14
zshrc
14
zshrc
|
@ -23,10 +23,10 @@ function loadRC {
|
||||||
fpath=($1/completions $fpath)
|
fpath=($1/completions $fpath)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add local customization file
|
# # Add local customization file
|
||||||
if [ -w $1 ]; then
|
# if [ -w $1 ]; then
|
||||||
[ -f $1/99-local.zsh ] || echo "# Local customizations" > $1/99-local.zsh
|
# [ -f $1/99-local.zsh ] || echo "# Local customizations" > $1/99-local.zsh
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
# Process all .zsh files
|
# Process all .zsh files
|
||||||
for zshFile in $1/[0-9]*.zsh; do
|
for zshFile in $1/[0-9]*.zsh; do
|
||||||
|
@ -40,3 +40,9 @@ local KERNLIB=${LIBRARY}/${KERNEL}
|
||||||
|
|
||||||
loadRC ${LIBRARY}
|
loadRC ${LIBRARY}
|
||||||
loadRC ${KERNLIB}
|
loadRC ${KERNLIB}
|
||||||
|
|
||||||
|
# Add local customization file
|
||||||
|
if [ -w $LIBRARY ]; then
|
||||||
|
[ -f $LIBRARY/99-local.zsh ] || echo "# Local customizations" > $LIBRARY/99-local.zsh
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue