forked from extern/nushell
6af59cb0ea
# Description this PR adds the `path add` command to `crates/nu-utils/standard_library/std.nu` - this comes from frequent questions over on the discord server, about how to add directories to the `PATH` - this is greatly inspired from the [original `path-add`](https://discord.com/channels/601130461678272522/615253963645911060/1081206660816699402) from @melMass - allows to prepend and append a variable number of directories to the `PATH` - i've added a description with an example - i've added tests in `crates/nu-utils/standard_library/tests.nu` that hopefully covers all the features # User-Facing Changes `path add` can now be used from `std.nu` # Tests + Formatting the tests pass with ```bash nu crates/nu-utils/standard_library/tests.nu ``` # After Submitting ```bash $nothing ``` |
||
---|---|---|
.. | ||
src | ||
standard_library | ||
.gitignore | ||
Cargo.toml | ||
LICENSE |