Mac bash doesn't remember alias
Running the command will define it for the current shell, but that's it. There's nothing specific about macOS here — this is a bash thing. You have to run the command on every shell. To do this automatically, add the line to a sourced file such as ~/.bash_profile.