I have two versions of AWS SAM CLI installed on my MacOS. I got the following result when running where sam
in zsh:
$ where sam
/Users/MyName/.pyenv/shims/sam
/usr/local/bin/sam
When running sam
command, MacOS runs the sam
under /Users/MyName/.pyenv/shims/
.
Is it possible to configure my zsh terminal so that sam
runs the version under /usr/local/bin
?
The reason I want to do this is that /Users/MyName/.pyenv/shims/sam
returns an error after I execute it.
I'd like to avoid this problem by running the sam
under /usr/local/bin/
.