Add name and version. Add dep on zini.

This commit is contained in:
2024-02-27 18:39:09 +01:00
parent 41f0709722
commit fe7b5544e4
3 changed files with 5 additions and 19 deletions

1
functions/zini Submodule

Submodule functions/zini added at 5496e25871

View File

@ -1,16 +0,0 @@
function zrep_fpath() {
local base_dir="$1"
# Check if the base directory exists
if [[ ! -d "$base_dir" ]]; then
echo "Error: Base directory '$base_dir' does not exist."
return 1
fi
# Add directories containing at least one file to fpath
for dir in $base_dir/**/*(/N); do
if [[ -n $(ls -A "$dir") ]]; then
fpath=($dir $fpath)
fi
done
}