Browse Source

Don't blow up dotenv for users who don't have nix

Connor Prussin 1 năm trước cách đây
mục cha
commit
4cd321d5b7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      .envrc

+ 1 - 1
.envrc

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