Last active
July 3, 2019 04:14
-
-
Save lisanhu/605dff9ae3f6e9e5bfb63c89f2f3f0f8 to your computer and use it in GitHub Desktop.
Clean up PATH like environment variables to remove duplicates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -n $PATH | awk 'NF && !seen[$0]++ {printf "%s:", $0}' RS=':' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment