mirror of
https://github.com/nushell/nushell
synced 2024-12-28 14:03:09 +00:00
18 lines
262 B
Markdown
18 lines
262 B
Markdown
|
# exit
|
||
|
|
||
|
Exits the nu shell. If STATUS is supplied, it will be converted to an integer and used as the exit code. Otherwise, the exit code will be that of the last command executed.
|
||
|
|
||
|
## Examples
|
||
|
|
||
|
```shell
|
||
|
> exit
|
||
|
```
|
||
|
|
||
|
```shell
|
||
|
> exit 1
|
||
|
```
|
||
|
|
||
|
```shell
|
||
|
> exit 0
|
||
|
```
|