Skip to content

reorders directories in $PATH based on pre-defined ranks

Notifications You must be signed in to change notification settings

char8/path_fixer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

path_fixer

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:

  1. Paths prefixed /User/ or /home/
  2. Any unranked paths
  3. Paths prefixed /bin/ or /sbin/
  4. Paths prefixed /usr/local/
  5. 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.

About

reorders directories in $PATH based on pre-defined ranks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages