Sfoglia il codice sorgente

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

Connor Prussin 1 anno fa
parent
commit
4cd321d5b7
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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