pathdedup

Crates.iopathdedup
lib.rspathdedup
version1.0.0
created_at2025-03-25 17:34:53.906491+00
updated_at2025-12-06 17:53:57.628938+00
descriptionOutput $PATH with all duplicate entries dropped
homepage
repositoryhttps://app.radicle.xyz/nodes/radicle.liw.fi/rad%3Az3uBEubocQ9kJANPvMAo6z5ZhhaFh
max_upload_size
id1605547
size18,673
(larswirzenius)

documentation

README

pathdedup - de-duplicate the PATH environment variable

With a complicated Unix shell setup, the PATH environment variable can end up being long, with many components. pathedup outputs an equivalent value for PATH, but with duplicate entries removed.

Example

$ echo "$PATH"
/sbin:/usr/sbin:/bin:/usr/bin
$ pathdedup
/sbin:/bin

In this case, /bin is a symbolic link to /usr/bin, so only /bin is kept.

Commit count: 0

cargo fmt