# add this at the end of ~/.zshrc to deduplicated automatically exported paths typeset -U path PATH # you can check by below command echo "$PATH" | tr ':' '\n' | sort