DEV Community

Waylon Walker
Waylon Walker

Posted on • Originally published at waylonwalker.com

Dedupe your shell paths

If you have ever ran which <command> and see duplicate entries it's likely that you have duplicate entries in your $PATH. You can clean this up with a one liner at the end of your bashrc or zshrc.

eval "typeset -U path"
Enter fullscreen mode Exit fullscreen mode

Top comments (0)