I want to install rvm on my Snow Leopard machine.
It says I need to add a line to my
.bashrc file (I'm using bash) but where is my
Regarding the problem with .bashrc above:
On most systems,
See the Bash Reference Manual, section 6.2 Bash Startup Files
On my Mac (Running Leopard), there was no line to source ~/.bashrc . I had to add this functionality on my own.
On some systems, .bashrc is sourced from the global /etc/profile or /etc/bash_profile , or is done using the template files from /etc/skel .
So turns out that on Mac OS X Snow Leopard as well as Mac OS X Lion, the file that's loaded is called
What you want to do is create a file in
Put whatever information you needed to load with each instance of bash there (Thanks, thepurplepixel).
A couple of side notes:
Edit: Chris Page notes (correctly) that whatever you place in a .profile file will apply to whatever shell you're using (i.e. zhs, bash, et cetera). If you want the contents to affect only the bash shell, place the contents in a
You have to make your own
I find that in my OS 10.6.5 the bash settings are in "/etc/bashrc". I think this is the toplevel specifications for shell.
However, you need a root account to modify it. The local per-user specifications "~/.bashrc" should start with the following snippet, to read and load the system-level bash settings:
I normally add aliases in the system level bashrc so that all users can access them as well. Unless they don't want to use your shortcuts and aliases.
Use the .profile file to add anything that you would add to a linux .bashrc file.
Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?