CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Installation on Windows, Mac and other Unsupported Platforms

.bashrc file in Mac OS

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   March 13, 2014, 17:27
Default .bashrc file in Mac OS
Peng Liang
Join Date: Mar 2014
Posts: 46
Rep Power: 4
tjliang is on a distinguished road
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 ,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!
tjliang is offline   Reply With Quote

Old   March 15, 2014, 06:36
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,748
Blog Entries: 39
Rep Power: 103
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
Greetings Peng Liang,

To find where your file ".bashrc" is located, try running this command:
ls -l ~/.bashrc
To see in which folder it is located (or at least where it should be located), run:
cd ~
Best regards,
wyldckat is offline   Reply With Quote

Old   March 15, 2014, 08:44
Senior Member
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,438
Rep Power: 25
alexeym will become famous soon enoughalexeym will become famous soon enough

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



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 01:41
funkySetFields compilation error tayo OpenFOAM 39 December 3, 2012 06:18
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44
mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 12 December 12, 2011 05:16
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 12:46

All times are GMT -4. The time now is 04:40.