Homebrew has a tendency to add a duplicate entry to the PATH. This bit of line noise de-dupes the PATH variable. Keeps the first appearance, and handles paths with trailing slashes:
21 Nov 20241 min read
Homebrew has a tendency to add a duplicate entry to the PATH. This bit of line noise de-dupes the PATH variable. Keeps the first appearance, and handles paths with trailing slashes: