terminal create file(file_name as bash arguments) then write text into it, relate to .bash_profile
After modifying .bash_profile you have to either source the modified bash profile with source ~/.bash_profile or close the current and reopen a new Terminal window to have the changes take effect.
UPDATE: I had done some testing, now the solution is definitely restart Terminal.app. source ~/.bash_profile to reload is not enough.