summary refs log tree commit diff stats
path: root/.envrc
diff options
context:
space:
mode:
authorAlan Pearce2024-06-29 17:36:24 +0200
committerAlan Pearce2024-06-29 17:36:24 +0200
commitcf942bc3c88e6d4482b6f99c1a31b5c13efe8e69 (patch)
tree247ab90505579d296d474c42bbe8317edb863ccd /.envrc
downloadgopkgs-cf942bc3c88e6d4482b6f99c1a31b5c13efe8e69.tar.lz
gopkgs-cf942bc3c88e6d4482b6f99c1a31b5c13efe8e69.tar.zst
gopkgs-cf942bc3c88e6d4482b6f99c1a31b5c13efe8e69.zip
initial commit
Diffstat (limited to '.envrc')
-rw-r--r--.envrc9
1 files changed, 9 insertions, 0 deletions
diff --git a/.envrc b/.envrc
new file mode 100644
index 0000000..82b2b9e
--- /dev/null
+++ b/.envrc
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+# the shebang is ignored, but nice for editors
+
+if type -P lorri &>/dev/null; then
+  eval "$(lorri direnv)"
+else
+  echo 'while direnv evaluated .envrc, could not find the command "lorri" [https://github.com/nix-community/lorri]'
+  use nix
+fi