I've installed direnv (v2.18.2) onto my Ubuntu 16.04 machine using:
sudo snap install direnv
as per the website, and added the line:
eval "$(direnv hook bash)"
to my ~/.bashrc
file as per the instructions. When I navigate into the directory with my .envrc
file, the following message shown:
direnv: error .envrc is blocked. Run `direnv allow` to approve its content.
Sweet. So I run direnv allow
, and I'm immediately hit with exactly the same error. I've also tried using direnv allow .
but that doesn't seem to help. Also, completely restarting my laptop hasn't helped either.
All the advice I've seen is for direnv not finding the .envrc
file, but here it is finding it, it's just not allowing me to allow it.