From c92eb49c057750d6c7090e7d66335be806e70894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Fri, 15 Mar 2024 22:35:41 +0100 Subject: [PATCH] Added conditional check for zrep initialization. Created files .addons and installed.json during zrep initialization. --- zrep | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zrep b/zrep index 2ee54b6..5f95b37 100755 --- a/zrep +++ b/zrep @@ -24,6 +24,11 @@ function zrep_fpath() { done } +if [[ ${1} != "init" ]]; then + zrep_fpath ${HOME}/.zrep/functions + autoload -Uz zini +fi + # Define a list of colors available to use in themes typeset -A base_colors=( [green]="\033[0;32m" @@ -218,6 +223,8 @@ EOF echo "File .zrep_addons already exists. Review manually if update is needed." fi + touch ${install_dir}/.addons + touch ${install_dir}/installed.json echo "zrep initialization complete." echo "Remember to 'source ${zshrc_file}' to load the 'zrep' settings." }