How to add /usr/local/bin in $PATH on Mac

When I do ‘open .profile‘ in the terminal I have the following:

export PATH=$PATH:/usr/local/git/bin 

Now I installed node.js for Mac and it says,

  • How do I prevent git diff from using a pager?
  • Reset git template path
  • Recursively ignore folder in git
  • Grab the svn HEAD git commit number?
  • List modified file names in a git stash
  • Two profiles on development tools (work and home)
  • Make sure that /usr/local/bin is in your $PATH.

    How can I add /usr/local/bin to export PATH=$PATH:/usr/local/git/bin?

  • git-svn - #object# doesn't exist in the repository at /opt/local/libexec/git-core/git-svn line 4706
  • How to get my git-integrated Kaleidoscope to display all files that are about to be committed?
  • fatal: bad default revision 'HEAD'
  • How do I fix a merge conflict due to removal of a file in a branch?
  • SmartGit: Log window is very slow
  • What is the difference between 'git remote update', 'git fetch' and 'git pull'?
  • 3 Solutions collect form web for “How to add /usr/local/bin in $PATH on Mac”

    export PATH=$PATH:/usr/local/git/bin:/usr/local/bin

    One note: you don’t need quotation marks here because it’s on the right hand side of an assignment, but in general, and especially on Macs with their tradition of spacy pathnames, expansions like $PATH should be double-quoted as "$PATH".

    Try placing $PATH at the end.

    export PATH=/usr/local/git/bin:/usr/local/bin:$PATH

    I’ve had the same problem with you.

    cd to ../etc/
    then use ls to make sure your “paths” file is in ,
    vim paths, add “/usr/local/bin” at the end of the file.

    Git Baby is a git and github fan, let's start git clone.