CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   .bashrc file in Mac OS (https://www.cfd-online.com/Forums/openfoam-installation/131371-bashrc-file-mac-os.html)

tjliang March 13, 2014 16:27

.bashrc file in Mac OS
 
hello everyone,

could someone tell me how to find out the .bashrc file in my max os x 10.7.5 version. I have tried to install openfoam in my mac os x but without this file i can not continue.

By the way, according to the instructions in openfoamwiki http://openfoamwiki.net/index.php/In...OpenFOAM_2.1.x ,I have already come to this step:' make your OpenFOAM installation ready to be used on the next reboot, edit your personal ~/.bashrc file and add the following line to the end of the file (in a new line!):
alias of21='hdiutil attach "/PATH/TO/YOUR/DMG/OpenFOAM.dmg" -mountpoint "$HOME/OpenFOAM" > /dev/null ; . $HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc' '

So looking foreword to all your suggestions!

wyldckat March 15, 2014 05:36

Greetings Peng Liang,

To find where your file ".bashrc" is located, try running this command:
Code:

ls -l ~/.bashrc
To see in which folder it is located (or at least where it should be located), run:
Code:

cd ~
pwd

Best regards,
Bruno

alexeym March 15, 2014 07:44

Hi,

actually it may be called .profile (for example on my mac you never had .bashrc) and it is located in your home folder.


All times are GMT -4. The time now is 02:27.