Search code examples
macosshellunixzsh

Shell command "where" duplicate output


ls -al /usr/local/bin/shopify produces following output

lrwxr-xr-x 1 myuser admin 39 19 Jan 11:53 /usr/local/bin/shopify -> ../Cellar/shopify-cli/1.5.0/bin/shopify

Why is the output of where shopify duplicate?

enter image description here


Solution

  • as user1934428 commented, the path was listed twice in the .zshrc. To avoid this in the future I put typeset -aU path after the last export statetement