Skip to content

Instantly share code, notes, and snippets.

@GaryLee
Created December 25, 2025 00:17
Show Gist options
  • Select an option

  • Save GaryLee/decdc369c042fa69de00a8d0170c9a4a to your computer and use it in GitHub Desktop.

Select an option

Save GaryLee/decdc369c042fa69de00a8d0170c9a4a to your computer and use it in GitHub Desktop.
Re-export the PATH, removing duplicate paths.
# 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