1

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?

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
| improve this answer | |

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