mirror of
https://github.com/nushell/nushell.git
synced 2025-08-16 10:09:00 +02:00
Add --env and --wrapped flags to def (#10566)
This commit is contained in:
@ -34,7 +34,7 @@ use log.nu
|
||||
# ```nushell
|
||||
# >_ std path add {linux: "foo", windows: "bar", darwin: "baz"}
|
||||
# ```
|
||||
export def-env "path add" [
|
||||
export def --env "path add" [
|
||||
--ret (-r) # return $env.PATH, useful in pipelines to avoid scoping.
|
||||
--append (-a) # append to $env.PATH instead of prepending to.
|
||||
...paths # the paths to add to $env.PATH.
|
||||
|
Reference in New Issue
Block a user