mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-11 13:07:28 -05:00
Add direnv-envrc-mode file template
This commit is contained in:
@ -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
|
Reference in New Issue
Block a user