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-04-15 04:44:09 +01:00
|
|
|
- Execute specific 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
|
|
|
|
2022-04-15 04:44:09 +01:00
|
|
|
- Execute a specific script:
|
2021-04-27 17:05:25 +01:00
|
|
|
|
|
|
|
`nu {{path/to/script.nu}}`
|
|
|
|
|
2022-04-15 04:44:09 +01:00
|
|
|
- Execute a specific script with logging:
|
2021-04-27 17:05:25 +01:00
|
|
|
|
|
|
|
`nu --loglevel {{error|warn|info|debug|trace}} {{path/to/script.nu}}`
|