Force terminal to use binary from a different path
You can always provide the full path to the binary instead of using the PATH at all.



$ /usr/local/bin/pandoc


To make multiple executions easier, you can create an alias.

alias pandoc=/usr/local/bin/pandoc




$ which pandoc
/Users/marco/.pyenv/shims/pandoc

$ alias pandoc=/usr/local/bin/pandoc

$ which pandoc
pandoc: aliased to /usr/local/bin/pandoc


To make future executions easier, put this alias in a .profile.

To bypass the alias without removing it, prepend a \.

$ \pandoc


The ‘right way’ is still to modify your PATH.