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 I have no idea where to find it. Please help.
Moved my edit into a selected answer as per comments.
|
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 I have no idea where to find it. Please help. Moved my edit into a selected answer as per comments.
| |||||||||
feedback
|
|
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 . | ||||
|
feedback
|
|
You have to make your own | |||||||||||
feedback
|
|
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. Good luck! | ||||
feedback
|
|
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 | ||||
|
feedback
|
|
Use the .profile file to add anything that you would add to a linux .bashrc file. For example
| |||||
feedback
|
|
hia - am also installing rvm on OS 10.6.4 and found I file in private/etc/bashrc though I do have a .profile and .bash_login file, but the are specific to the user and contain only paths, whilst the private/etc/bashrc (without the .) looks more like I would have expected from the installation instructions. So I am using that. particularly since it has a comment at the top: System-wide .bashrc file for interactive bash(1) shells. cheers, daniela | |||
|
feedback
|
This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.