upower/contrib/setup

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
378 B
Text
Raw Normal View History

2025-01-08 16:32:04 +08:00
#!/usr/bin/env -S bash -e
#set up local repository
install_pip()
{
package=$1
args=$2
python3 -m pip install $package $args
}
setup_precommit()
{
echo "Configuring pre-commit hooks"
install_pip pre-commit
pre-commit install
}
2025-01-08 16:32:04 +08:00
setup_git()
{
echo "Configuring git environment"
git config include.path ../.gitconfig
}
setup_git
setup_precommit