mirror of
https://github.com/nushell/nushell.git
synced 2024-11-23 17:03:45 +01:00
c0a1d18e3d
* feat: update #4455, regenerate commands' docs * chore: update make_docs script
427 B
427 B
title | layout | version |
---|---|---|
def-env | command | 0.59.0 |
Define a custom command, which participates in the caller environment
Signature
> def-env (def_name) (params) (block)
Parameters
def_name
: definition nameparams
: parametersblock
: body of the definition
Examples
Set environment variable by call a custom command
> def-env foo [] { let-env BAR = "BAZ" }; foo; $env.BAR