Add direnv-envrc-mode file template

This commit is contained in:
Henrik Lissner 2019-07-10 02:25:00 +02:00
parent c99c184f85
commit c2fe951062
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,15 @@
# -*- mode: snippet -*-
# group: file templates
# contributor: Henrik Lissner
# condition: (executable-find "nix-env")
# --
if type lorri &>/dev/null; then
echo "direnv: using lorri"
eval "$(lorri direnv)"
else
# fall back to using direnv's builtin nix support
# to prevent bootstrapping problems.
use nix
fi
`%`$0