source/prog/lang-haskell/commune/.envrc

15 lines
408 B
Bash

#!/usr/bin/env bash
# the shebang is ignored, but nice for editors
source_up
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
# Bring GITHUB_TOKEN into the environment.
eval "$(passage env/github/kaction | sed 's/^/export /')"
path_add XDG_CONFIG_DIRS $PWD/xdg