Skip to content

Commit 4cd321d

Browse files
committed
Don't blow up dotenv for users who don't have nix
1 parent 4f4e6a5 commit 4cd321d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.envrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
if type -P lorri &>/dev/null; then
55
eval "$(lorri direnv)"
6-
else
6+
elif type -P nix-shell &>/dev/null; then
77
echo 'while direnv evaluated .envrc, could not find the command "lorri" [https://github.com/nix-community/lorri]'
88
use nix
99
fi

0 commit comments

Comments
 (0)