Yes. .bash_profile will be sourced in a terminal session; .bashrc is run in a shell. Anything that needs to get executed for your one-liner needs to be in .bashrc.
Yes. .bash_profile will be sourced in a terminal session; .bashrc is run in a shell. Anything that needs to get executed for your one-liner needs to be in .bashrc.