I have installed pandoc using homebrew and the Anaconda python distribution using pyenv. I've just found that Anaconda comes with its own pandoc binary and since the pyenv shims come before homebrew in my PATH, I cannot use the homebrew (and newer) version of pandoc.
This is my current PATH
➜ ~ echo $PATH /Users/marco/.pyenv/shims:/Users/marco/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/MacGPG2/bin ➜ ~ which pandoc /Users/marco/.pyenv/shims/pandoc
Is there a way to force the terminal to use the homebrew version of a binary without breaking the PATH?