A simple utility to rearrange segments of a unix PATH environment variable based on predefined priorities. These priorities have been defined in the tools source:
- Paths prefixed
/User/
or/home/
- Any unranked paths
- Paths prefixed
/bin/
or/sbin/
- Paths prefixed
/usr/local/
- Paths prefixed
/usr/bin/
or/usr/sbin/
This is written to solve the specific problem where a global /etc/zprofile
adds a path that takes higher priority than one defined in ~/.zshenv
as the
latter loads first.