The question is tagged
bash and it explicitly mentions .bash_profile. The solution in this answer is for zsh, it does not work in bash.