Hi Fred, seems like our comments have crossed each other. Still in the 
high name of knowledge sharing here's the answer:

$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin
$ which git
/usr/local/bin/git

Thanks for the tip with /etc/paths.d. I was initially also taken aback 
by the ~/.bash_login file, because on my machine there's a file at root 
level named #.bash_profile# . When I cat this file, nothing comes out of 
it. Yet when I open it in a text program the contents are the same as in 
the (hidden!) ~/.bash_login file! What most strange is when I do a ls -a 
BOTH these files are displayed:

#.bash_login#
.
..
.CFUserTextEncoding
.DS_Store
.Trash
.Xauthority
.Xcode
.bash_history
.bash_login
.bash_profile
.csh_history
.
.
.
etc

Must be Leopard's way of telling you that this file is important 
somehow. Strange, as it looks like information duplication.

/ Vahagn

Frederick Cheung wrote:
> On 28 Nov 2008, at 13:52, Vahagn Hayrapetyan wrote:
> 
>>
>> Sorry, but something seems to be wrong here. I've added the path, so  
>> now
>> I have:
>>
>> $ cat .bash_login
>> PATH="/usr/local/git/bin:/usr/local/git:${PATH}"
>> export PATH
>>
> What does echo $PATH
> output?
> Personally I can never remember the difference
> between .bash_login, .bash_profile, .bash_rc etc...
> In 10.5 at least there is another mechanism:
> if you create a file in /etc/paths.d containing the path you want then
> that will be added to the search list.
> 
> Fred

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to