Created
December 25, 2025 00:17
-
-
Save GaryLee/decdc369c042fa69de00a8d0170c9a4a to your computer and use it in GitHub Desktop.
Re-export the PATH, removing duplicate paths.
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
| # Following line can be added to your .?shrc file. | |
| export PATH=`python -c "print(':'.join(dict.fromkeys('''$PATH'''.split(':'))))"` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment