forked from the-distro/infra
chore: add lorri to prevent direnv from blocking, closes #147
This commit is contained in:
parent
02f8bc7ca4
commit
5ae71fff99
9
.envrc
9
.envrc
|
@ -1,2 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
# the shebang is ignored, but nice for editors
|
||||
|
||||
# shellcheck shell=bash
|
||||
if type -P lorri &>/dev/null; then
|
||||
eval "$(lorri direnv --flake .)"
|
||||
else
|
||||
echo 'while direnv evaluated .envrc, could not find the command "lorri" [https://github.com/nix-community/lorri]'
|
||||
use flake
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue