From 8885c61e9f6d156816ff2d64ed8c33b0174fff79 Mon Sep 17 00:00:00 2001 From: lachtan Date: Mon, 31 May 2021 20:34:05 +0200 Subject: [PATCH] Load direnv only if exists --- rc/direnv.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rc/direnv.sh b/rc/direnv.sh index f749ef0..06e9d28 100644 --- a/rc/direnv.sh +++ b/rc/direnv.sh @@ -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