you can’t do that. You need to restart the parent shell that started Erlang process to get the new environment variables in.