2025-03-14 21:59:59 -06:00
|
|
|
# nu
|
|
|
|
|
|
|
|
|
|
> Nushell ("a new type of shell") takes a modern, structured approach to your command-line.
|
|
|
|
|
> See also: `elvish`.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://www.nushell.sh/book/configuration.html#flag-behavior>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Start an interactive shell session:
|
|
|
|
|
|
|
|
|
|
`nu`
|
|
|
|
|
|
|
|
|
|
- Execute specific commands:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`nu {{[-c|--commands]}} "{{echo 'nu is executed'}}"`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Execute a specific script:
|
|
|
|
|
|
|
|
|
|
`nu {{path/to/script.nu}}`
|
|
|
|
|
|
|
|
|
|
- Execute a specific script with logging:
|
|
|
|
|
|
|
|
|
|
`nu --log-level {{error|warn|info|debug|trace}} {{path/to/script.nu}}`
|