From 05eb0c7819f577ba71045a44fa55d19cbd276238 Mon Sep 17 00:00:00 2001 From: Andrea Mistrali Date: Sun, 26 May 2024 09:20:26 +0200 Subject: [PATCH] Small improvement --- zshrc | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/zshrc b/zshrc index db6c1d1..9fdf3c0 100644 --- a/zshrc +++ b/zshrc @@ -20,22 +20,11 @@ [ -d ~/.zsh ] && BASE=~/.zsh function loadRC { - if [ -d $1/zshfunctions ]; then - fpath=($1/zshfunctions $fpath) - fi + [ -d $1/zshfunctions ] && fpath=($1/zshfunctions $fpath) + [ -d $1/completions ] && fpath=($1/completions $fpath) - if [ -d $1/completions ]; then - 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 - - # Process all .zsh files for zshFile in $1/[0-9]*.zsh; do - . $zshFile + source $zshFile done }