bash_aliases/template.aliases
deathbybandaid ef02cda30b test
2022-03-08 09:37:55 -05:00

18 lines
599 B
Plaintext

# The Contents of this file will be running our setup command
# Run Template Setup Script
# alias template-setup='bash /etc/template_setup/template_setup.sh'
template_setup_path="/etc/template_setup"
template_setup_repo="https://git.deathbybandaid.net/deathbybandaid/template_setup.git"
template-setup()
{
if [ -d "$template_setup_path" ] ; then
git -C $template_setup_path pull --quiet && echo "Pulled $template_setup_path"
else
git clone --quiet "$template_setup_repo" "$template_setup_path" && echo "Pulled $template_setup_path"
fi
bash /etc/template_setup/template_setup.sh
}