2021-04-27 17:05:25 +01:00
|
|
|
# nu
|
|
|
|
|
|
|
|
> Nushell ("a new type of shell") takes a modern, structured approach to your command-line.
|
2022-02-06 14:19:41 +00:00
|
|
|
> See also: `elvish`.
|
2021-04-27 17:05:25 +01:00
|
|
|
> More information: <https://www.nushell.sh>.
|
|
|
|
|
|
|
|
- Start an interactive shell session:
|
|
|
|
|
|
|
|
`nu`
|
|
|
|
|
2022-02-06 14:19:41 +00:00
|
|
|
- Execute commands:
|
2021-04-27 17:05:25 +01:00
|
|
|
|
2022-02-06 14:19:41 +00:00
|
|
|
`nu --commands "{{echo 'nu is executed'}}"`
|
2021-04-27 17:05:25 +01:00
|
|
|
|
|
|
|
- Execute a script:
|
|
|
|
|
|
|
|
`nu {{path/to/script.nu}}`
|
|
|
|
|
|
|
|
- Execute a script with logging:
|
|
|
|
|
|
|
|
`nu --loglevel {{error|warn|info|debug|trace}} {{path/to/script.nu}}`
|