mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
27 lines
599 B
Plaintext
27 lines
599 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# nu
|
|
|
|
> Nushell ("a new type of shell") takes a modern, structured approach to your command-line.
|
|
> See also: `elvish`.
|
|
> More information: <https://www.nushell.sh/book/configuration.html#flag-behavior>.
|
|
|
|
- Start an interactive shell session:
|
|
|
|
`nu`
|
|
|
|
- Execute specific commands:
|
|
|
|
`nu {{[-c|--commands]}} "{{echo 'nu is executed'}}"`
|
|
|
|
- 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}}`
|