Add direnv-envrc-mode file template
This commit is contained in:
parent
c99c184f85
commit
c2fe951062
2 changed files with 17 additions and 0 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue