From fe7b5544e4a64f41c615dcbf32b98c6fcf7d2f5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Tue, 27 Feb 2024 18:39:09 +0100 Subject: [PATCH] Add name and version. Add dep on zini. --- functions/zini | 1 + functions/zrep_fpath | 16 ---------------- zrep | 7 ++++--- 3 files changed, 5 insertions(+), 19 deletions(-) create mode 160000 functions/zini delete mode 100644 functions/zrep_fpath diff --git a/functions/zini b/functions/zini new file mode 160000 index 0000000..5496e25 --- /dev/null +++ b/functions/zini @@ -0,0 +1 @@ +Subproject commit 5496e2587155f6796830b52047a823b95f7cbcd1 diff --git a/functions/zrep_fpath b/functions/zrep_fpath deleted file mode 100644 index 54b2069..0000000 --- a/functions/zrep_fpath +++ /dev/null @@ -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 -} diff --git a/zrep b/zrep index dada488..fe34042 100755 --- a/zrep +++ b/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() { local base_dir="$1" @@ -17,8 +20,6 @@ function zrep_fpath() { done } -#echo "BEGIN: $fpath" - zrep_fpath ${HOME}/bin/include autoload -Uz zini