インストール

sudo pacman -S direnv
echo 'eval "$(direnv hook bash)"' >> ~/.bashrc

初期化

echo "use flake" > .envrc