updated .envrc

pull/16/head
Hari Sekhon 1 month ago
parent 7ec48a9e47
commit cdf4025d6a

@ -52,14 +52,20 @@ srcdir="$(cd "$(dirname "$src")" && pwd)"
# Automatically install Pre-Commit Git hooks if not already present
if ! type -P pre-commit &>/dev/null &&
uname -s | grep -q Darwin &&
if ! type -P pre-commit &>/dev/null; then
if uname -s | grep -q Darwin &&
type -P brew &>/dev/null; then
echo
echo "Pre-commit is not installed - installing now..."
echo "Pre-commit is not installed - installing now using Homebrew..."
echo
brew install pre-commit
echo
elif type -P pip &>/dev/null; then
echo
echo "Pre-commit is not installed - installing now using Pip..."
echo
pip install pre-commit
fi
fi
if [ -f .pre-commit-config.yaml ] &&

Loading…
Cancel
Save