lorri
lorri copied to clipboard
lorri init .envrc: fall back to `use nix`
A trivial improvement, the default .envrc
should check whether lorri is installed and if not fall back to the direnv-native use nix
.
Like this?
if has lorri; then
eval "$(lorri direnv)"
else
use nix
fi
yeah, with type lorri >/dev/null
I guess
yeah, with
type lorri >/dev/null
I guess
That would need to be type -P lorri &>/dev/null
.
Maybe also include a link to lorri in the fallback case?