If you have ever ran which <command> and see duplicate entries it's likely that you have duplicate entries in your $PATH. You can clean this up with a one liner at the end of your bashrc or zshrc.


eval "typeset -U path"