Load direnv only if exists

This commit is contained in:
lachtan
2021-05-31 20:34:05 +02:00
parent 14ffc37a5f
commit 8885c61e9f

View File

@@ -1,2 +1,7 @@
eval "$(direnv hook bash)"
# Loading direnv bash hook
if command -v direnv > /dev/null; then
eval "$(direnv hook bash)"
else
echo "SKIP direnv"
fi