Added conditional check for zrep initialization.

Created files .addons and installed.json during zrep initialization.
This commit is contained in:
Stig-Ørjan Smelror 2024-03-15 22:35:41 +01:00
parent 17355e5779
commit c92eb49c05

7
zrep
View File

@ -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."
}