Add name and version. Add dep on zini.
This commit is contained in:
parent
41f0709722
commit
fe7b5544e4
1
functions/zini
Submodule
1
functions/zini
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 5496e2587155f6796830b52047a823b95f7cbcd1
|
@ -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
|
|
||||||
}
|
|
7
zrep
7
zrep
@ -1,4 +1,7 @@
|
|||||||
#!/usr/local/bin/zsh
|
#!/usr/bin/zsh
|
||||||
|
|
||||||
|
VERSION="0.0.1" # Sat-2024-02-24
|
||||||
|
ZREP="Zsh Repository Tool"
|
||||||
|
|
||||||
function zrep_fpath() {
|
function zrep_fpath() {
|
||||||
local base_dir="$1"
|
local base_dir="$1"
|
||||||
@ -17,8 +20,6 @@ function zrep_fpath() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
#echo "BEGIN: $fpath"
|
|
||||||
|
|
||||||
zrep_fpath ${HOME}/bin/include
|
zrep_fpath ${HOME}/bin/include
|
||||||
|
|
||||||
autoload -Uz zini
|
autoload -Uz zini
|
||||||
|
Loading…
Reference in New Issue
Block a user