Autopsy on mac catalina

Hi there,
can anyone help me, im trying to follow the installation instructions on mac OS but the problem is when I reach this line :

et JAVA_HOME environment variable to location of JRE installation.
e.g. add the following to ~/.bashrc
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)

firstly I had no /.bashrc file in my mac so I went to youtube and created the /.bashrc file
but the problem is :
how can I add this line : export JAVA_HOME=$(/usr/libexec/java_home -v 1.8) into this folder /.bashrc

Check this post for some mac OS setup info.

Thanks a lot for your help ,im gonna try that