aboutsummaryrefslogtreecommitdiff
path: root/.envrc
diff options
context:
space:
mode:
Diffstat (limited to '.envrc')
-rw-r--r--.envrc17
1 files changed, 17 insertions, 0 deletions
diff --git a/.envrc b/.envrc
new file mode 100644
index 00000000..0fccc035
--- /dev/null
+++ b/.envrc
@@ -0,0 +1,17 @@
+guile_version=$(guile -c '(display (version))')
+
+if [ "${GUILE_LOAD_PATH:-no}" = "no" ]; then
+ export GUILE_LOAD_PATH="$PWD/module"
+else
+ export GUILE_LOAD_PATH="$PWD/module:$GUILE_LOAD_PATH"
+fi
+
+if [ "${GUILE_LOAD_COMPILED_PATH:-no}" = "no" ]; then
+ export GUILE_LOAD_COMPILED_PATH="$PWD/obj-${guile_version}"
+else
+ export GUILE_LOAD_COMPILED_PATH="$PWD/obj-${guile_version}:$GUILE_LOAD_COMPILED_PATH"
+fi
+unset guile_version
+
+export PATH="$PWD/static/node_modules/.bin:$PATH"
+export PATH="$PWD/scripts/:$PATH"