1

This question already has an answer here:

I just installed newer versions of grep and vim to my local ~/bin directory.

I have the path added via PATH=$PATH:$HOME/bin in my .bash_profile.

When I try to run either, the version installed in /usr/local/bin launches. How do I override this?

marked as duplicate by slm, Anthon, jasonwryan, Michael Mrozek Feb 20 '14 at 0:44

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3

The way you have set your new path then /bin /usr/bin is searched before $HOME/bin If you set it the other way around your $HOME/bin is searched first.

PATH=$HOME/bin:$PATH

Not the answer you're looking for? Browse other questions tagged or ask your own question.